package
4.0.0+incompatible
Repository: https://github.com/xmumy/api.git
Documentation: pkg.go.dev

# Functions

CampusRoleFromUID get campus role from uid.
No description provided by the author
ExtractBasicAuthorizationFromContext and return basic credentials.
ExtractBearerAuthorizationFromContext and return bearer token.
No description provided by the author
No description provided by the author
NewClient creates a AuthClient wrapper with some helper functions.
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

Auth_ServiceDesc is the grpc.ServiceDesc for Auth service.
Enum value maps for CampusRole.
Enum value maps for CampusRole.
Enum value maps for ErrorReason.
Enum value maps for ErrorReason.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Credential for authenticating user with campus ID and password.
No description provided by the author
UnimplementedAuthServer must be embedded to have forward compatible implementations.

# Interfaces

AuthClient is the client API for Auth service.
No description provided by the author
AuthServer is the server API for Auth service.
UnsafeAuthServer may be embedded to opt out of forward compatibility for this service.

# Type aliases

No description provided by the author
No description provided by the author