Documentation ¶
Index ¶
Constants ¶
View Source
const (
CookieName = "goapi-Cookie"
)
Variables ¶
View Source
var (
ErrExpiredSession error
)
Functions ¶
This section is empty.
Types ¶
type Account ¶
AccountView is the restricted response body of Account see: https://stackoverflow.com/questions/46427723/golang-elegant-way-to-omit-a-json-property-from-being-serialized
func ToAPIAccount ¶
ToAPIAccount returns the Account struct restricted to those fields allowed in options see: https://stackoverflow.com/questions/46427723/golang-elegant-way-to-omit-a-json-property-from-being-serialized
type CreateAccountRequest ¶
func (*CreateAccountRequest) Validate ¶
func (c *CreateAccountRequest) Validate() error
type Handler ¶
type Handler struct { *zap.SugaredLogger Accounts pb.AccountsClient Router *gin.Engine LogRawRequest bool // contains filtered or unexported fields }
func New ¶
func New(ac pb.AccountsClient, logger *zap.SugaredLogger, logRawRequest bool) (*Handler, error)
func (*Handler) AuthMiddleware ¶
func (*Handler) InitializeRoutes ¶
func (h *Handler) InitializeRoutes()
func (*Handler) WrappedLogger ¶
func (h *Handler) WrappedLogger(ctx context.Context) *zap.SugaredLogger
Click to show internal directories.
Click to hide internal directories.