Documentation
¶
Overview ¶
Package slink provides tools for slink-based clients.
Index ¶
- Constants
- func CastAnyToArray[T any](v *any) []*T
- func CastAnyToStruct[T any](v *any) *T
- func CastBoolToPointer(v bool) *bool
- func CastInt64ToPointer(v int64) *int64
- func CastStringToPointer(s string) *string
- func GenerateAuthToken(keybytes []byte, claims map[string]any, typ string) ([]byte, error)
- func LexiconTypeFromJSONBytes(data []byte) string
- func MarshalWithLexiconType(t string, v any) ([]byte, error)
- func Now() string
- func ReadJSONFile(name string) (*any, error)
- func RespondWithJSON(w http.ResponseWriter, response any)
- func SetLogLevel(level string) error
- func TruncateShort(s string) string
- func TruncateToLength(s string, maxlen int) string
- func VerifyAuthHeader(ctx context.Context, authHeader string) (*jwt.Token, error)
- func VerifyAuthToken(ctx context.Context, accessToken string) (*jwt.Token, error)
- func Write(w io.Writer, output string, v any) error
- type Blob
- type Client
- type Link
- type RequestType
Constants ¶
View Source
const ( Query = RequestType(iota) Procedure )
View Source
const ISO8601 = "2006-01-02T15:04:05.000Z"
Variables ¶
This section is empty.
Functions ¶
func CastAnyToArray ¶
func CastAnyToStruct ¶
func CastBoolToPointer ¶
func CastInt64ToPointer ¶
func CastStringToPointer ¶
func GenerateAuthToken ¶
func ReadJSONFile ¶
func RespondWithJSON ¶
func RespondWithJSON(w http.ResponseWriter, response any)
func SetLogLevel ¶
func TruncateShort ¶
func TruncateToLength ¶
func VerifyAuthHeader ¶
func VerifyAuthToken ¶
Types ¶
type RequestType ¶
type RequestType int
Click to show internal directories.
Click to hide internal directories.