More work on the api. Also auth middleware stuff
More work on the placeholder functions for the Linstrom API Additionally, started work on a slightly more sophisticated authentication control system And ran `go generate` again
This commit is contained in:
parent
b9c95a0297
commit
873f52d64f
14 changed files with 637 additions and 300 deletions
37
storage/noteaccesslevel_string.go
Normal file
37
storage/noteaccesslevel_string.go
Normal file
|
@ -0,0 +1,37 @@
|
|||
// Code generated by "stringer -type NoteAccessLevel"; DO NOT EDIT.
|
||||
|
||||
package storage
|
||||
|
||||
import "strconv"
|
||||
|
||||
func _() {
|
||||
// An "invalid array index" compiler error signifies that the constant values have changed.
|
||||
// Re-run the stringer command to generate them again.
|
||||
var x [1]struct{}
|
||||
_ = x[NOTE_TARGET_PUBLIC-0]
|
||||
_ = x[NOTE_TARGET_HOME-2]
|
||||
_ = x[NOTE_TARGET_FOLLOWERS-4]
|
||||
_ = x[NOTE_TARGET_DM-8]
|
||||
}
|
||||
|
||||
const (
|
||||
_NoteAccessLevel_name_0 = "NOTE_TARGET_PUBLIC"
|
||||
_NoteAccessLevel_name_1 = "NOTE_TARGET_HOME"
|
||||
_NoteAccessLevel_name_2 = "NOTE_TARGET_FOLLOWERS"
|
||||
_NoteAccessLevel_name_3 = "NOTE_TARGET_DM"
|
||||
)
|
||||
|
||||
func (i NoteAccessLevel) String() string {
|
||||
switch {
|
||||
case i == 0:
|
||||
return _NoteAccessLevel_name_0
|
||||
case i == 2:
|
||||
return _NoteAccessLevel_name_1
|
||||
case i == 4:
|
||||
return _NoteAccessLevel_name_2
|
||||
case i == 8:
|
||||
return _NoteAccessLevel_name_3
|
||||
default:
|
||||
return "NoteAccessLevel(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue