Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTags ¶
func GetTags(w http.ResponseWriter, r *http.Request, c authpb.AuthServiceClient) ([]string, error)
func InitServiceClient ¶
func InitServiceClient(cfg *config.Config) (authpb.AuthServiceClient, error)
func ValidateToken ¶
func ValidateToken(w http.ResponseWriter, r *http.Request, c authpb.AuthServiceClient) (string, error)
Types ¶
type ServiceClient ¶
type ServiceClient struct {
AuthClient authpb.AuthServiceClient
}
func RegisterRouter ¶
func RegisterRouter(r *mux.Router, cfg *config.Config) *ServiceClient
Click to show internal directories.
Click to hide internal directories.