Documentation ¶ Index ¶ func ContextWithUser(ctx context.Context, user *User) context.Context type Service func NewService(ctx context.Context, keysUrl string) (*Service, error) func (s *Service) Authenticate(ctx context.Context, token string) (*User, error) type User func UserFromContext(ctx context.Context) (*User, bool) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ContextWithUser ¶ func ContextWithUser(ctx context.Context, user *User) context.Context Types ¶ type Service ¶ type Service struct { // contains filtered or unexported fields } func NewService ¶ func NewService(ctx context.Context, keysUrl string) (*Service, error) func (*Service) Authenticate ¶ func (s *Service) Authenticate(ctx context.Context, token string) (*User, error) type User ¶ type User struct { Id string } func UserFromContext ¶ func UserFromContext(ctx context.Context) (*User, bool) Source Files ¶ View all Source files context.go service.go Click to show internal directories. Click to hide internal directories.