Documentation ¶
Index ¶
- Constants
- func ApiError(Msg string, Err error) error
- func AuthorizeUser(ctx context.Context, tokenMaker token.Maker, accessibleRoles []string) (*token.Payload, error)
- func ConvertActor(v db.Actor) *nfpbv1.ActorResponse
- func ConvertActors(v []db.Actor) []*nfpbv1.ActorResponse
- func ConvertGenre(v db.Genre) *nfpbv1.Genre
- func ConvertGenres(v []db.Genre) []*nfpbv1.Genre
- func ConvertLanguage(v db.Language) *nfpbv1.LanguageResponse
- func ConvertMeta(v db.Meta) *nfpbv1.MetaResponse
- func ConvertStudio(v db.Studio) *nfpbv1.Studio
- func ConvertStudios(v []db.Studio) []*nfpbv1.Studio
- func FieldViolation(field string, err error) *errdetails.BadRequest_FieldViolation
- func InvalidArgumentError(violations []*errdetails.BadRequest_FieldViolation) error
- func UnAuthenticatedError(err error) error
- type Metadata
Constants ¶
View Source
const ( AuthorizationHeader = "authorization" AuthorizationBearer = "bearer" )
Variables ¶
This section is empty.
Functions ¶
func AuthorizeUser ¶
func ConvertActor ¶
func ConvertActor(v db.Actor) *nfpbv1.ActorResponse
func ConvertActors ¶
func ConvertActors(v []db.Actor) []*nfpbv1.ActorResponse
func ConvertLanguage ¶
func ConvertLanguage(v db.Language) *nfpbv1.LanguageResponse
func ConvertMeta ¶
func ConvertMeta(v db.Meta) *nfpbv1.MetaResponse
func FieldViolation ¶
func FieldViolation(field string, err error) *errdetails.BadRequest_FieldViolation
func InvalidArgumentError ¶
func InvalidArgumentError(violations []*errdetails.BadRequest_FieldViolation) error
func UnAuthenticatedError ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.