Documentation ¶
Overview ¶
Code generated by ogen, DO NOT EDIT.
Index ¶
- func WithServerURL(ctx context.Context, u *url.URL) context.Context
- type AuthRequest
- func (s *AuthRequest) Decode(d *jx.Decoder) error
- func (s *AuthRequest) Encode(e *jx.Encoder)
- func (s *AuthRequest) GetEmail() string
- func (s *AuthRequest) GetPassword() string
- func (s *AuthRequest) MarshalJSON() ([]byte, error)
- func (s *AuthRequest) SetEmail(val string)
- func (s *AuthRequest) SetPassword(val string)
- func (s *AuthRequest) UnmarshalJSON(data []byte) error
- type AuthResponse
- type Client
- func (c *Client) GetAuthToken(ctx context.Context, request OptAuthRequest) (GetAuthTokenRes, error)
- func (c *Client) GetClientById(ctx context.Context, params GetClientByIdParams) (GetClientByIdRes, error)
- func (c *Client) GetWalletById(ctx context.Context, params GetWalletByIdParams) (GetWalletByIdRes, error)
- type ClientOption
- type Error
- func (s *Error) Decode(d *jx.Decoder) error
- func (s *Error) Encode(e *jx.Encoder)
- func (s *Error) GetCode() string
- func (s *Error) GetMessage() string
- func (s *Error) MarshalJSON() ([]byte, error)
- func (s *Error) SetCode(val string)
- func (s *Error) SetMessage(val string)
- func (s *Error) UnmarshalJSON(data []byte) error
- type ErrorHandler
- type GetAuthTokenBadRequest
- type GetAuthTokenForbidden
- type GetAuthTokenInternalServerError
- type GetAuthTokenNotFound
- type GetAuthTokenRes
- type GetClientByIdBadRequest
- type GetClientByIdInternalServerError
- type GetClientByIdNotFound
- type GetClientByIdParams
- type GetClientByIdRes
- type GetWalletByIdBadRequest
- type GetWalletByIdInternalServerError
- type GetWalletByIdNotFound
- type GetWalletByIdParams
- type GetWalletByIdRes
- type Handler
- type Invoker
- type Labeler
- type Middleware
- type OptAuthRequest
- func (o *OptAuthRequest) Decode(d *jx.Decoder) error
- func (o OptAuthRequest) Encode(e *jx.Encoder)
- func (o OptAuthRequest) Get() (v AuthRequest, ok bool)
- func (o OptAuthRequest) IsSet() bool
- func (s OptAuthRequest) MarshalJSON() ([]byte, error)
- func (o OptAuthRequest) Or(d AuthRequest) AuthRequest
- func (o *OptAuthRequest) Reset()
- func (o *OptAuthRequest) SetTo(v AuthRequest)
- func (s *OptAuthRequest) UnmarshalJSON(data []byte) error
- type OptString
- func (o *OptString) Decode(d *jx.Decoder) error
- func (o OptString) Encode(e *jx.Encoder)
- func (o OptString) Get() (v string, ok bool)
- func (o OptString) IsSet() bool
- func (s OptString) MarshalJSON() ([]byte, error)
- func (o OptString) Or(d string) string
- func (o *OptString) Reset()
- func (o *OptString) SetTo(v string)
- func (s *OptString) UnmarshalJSON(data []byte) error
- type Option
- type Route
- type Server
- type ServerOption
- func WithErrorHandler(h ErrorHandler) ServerOption
- func WithMaxMultipartMemory(max int64) ServerOption
- func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption
- func WithMiddleware(m ...Middleware) ServerOption
- func WithNotFound(notFound http.HandlerFunc) ServerOption
- func WithPathPrefix(prefix string) ServerOption
- type UnimplementedHandler
- func (UnimplementedHandler) GetAuthToken(ctx context.Context, req OptAuthRequest) (r GetAuthTokenRes, _ error)
- func (UnimplementedHandler) GetClientById(ctx context.Context, params GetClientByIdParams) (r GetClientByIdRes, _ error)
- func (UnimplementedHandler) GetWalletById(ctx context.Context, params GetWalletByIdParams) (r GetWalletByIdRes, _ error)
- type User
- func (s *User) Decode(d *jx.Decoder) error
- func (s *User) Encode(e *jx.Encoder)
- func (s *User) GetClientID() uuid.UUID
- func (s *User) GetEmail() string
- func (s *User) GetFirstName() OptString
- func (s *User) GetLastName() OptString
- func (s *User) GetWallets() []string
- func (s *User) MarshalJSON() ([]byte, error)
- func (s *User) SetClientID(val uuid.UUID)
- func (s *User) SetEmail(val string)
- func (s *User) SetFirstName(val OptString)
- func (s *User) SetLastName(val OptString)
- func (s *User) SetWallets(val []string)
- func (s *User) UnmarshalJSON(data []byte) error
- func (s *User) Validate() error
- type Wallet
- func (s *Wallet) Decode(d *jx.Decoder) error
- func (s *Wallet) Encode(e *jx.Encoder)
- func (s *Wallet) GetPrivateKey() string
- func (s *Wallet) GetPublicKey() string
- func (s *Wallet) MarshalJSON() ([]byte, error)
- func (s *Wallet) SetPrivateKey(val string)
- func (s *Wallet) SetPublicKey(val string)
- func (s *Wallet) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthRequest ¶
Ref: #/components/schemas/AuthRequest
func (*AuthRequest) Decode ¶
func (s *AuthRequest) Decode(d *jx.Decoder) error
Decode decodes AuthRequest from json.
func (*AuthRequest) Encode ¶
func (s *AuthRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AuthRequest) GetEmail ¶
func (s *AuthRequest) GetEmail() string
GetEmail returns the value of Email.
func (*AuthRequest) GetPassword ¶
func (s *AuthRequest) GetPassword() string
GetPassword returns the value of Password.
func (*AuthRequest) MarshalJSON ¶
func (s *AuthRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AuthRequest) SetEmail ¶
func (s *AuthRequest) SetEmail(val string)
SetEmail sets the value of Email.
func (*AuthRequest) SetPassword ¶
func (s *AuthRequest) SetPassword(val string)
SetPassword sets the value of Password.
func (*AuthRequest) UnmarshalJSON ¶
func (s *AuthRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type AuthResponse ¶
type AuthResponse struct {
AuthToken string `json:"auth_token"`
}
Ref: #/components/schemas/AuthResponse
func (*AuthResponse) Decode ¶
func (s *AuthResponse) Decode(d *jx.Decoder) error
Decode decodes AuthResponse from json.
func (*AuthResponse) Encode ¶
func (s *AuthResponse) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AuthResponse) GetAuthToken ¶
func (s *AuthResponse) GetAuthToken() string
GetAuthToken returns the value of AuthToken.
func (*AuthResponse) MarshalJSON ¶
func (s *AuthResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AuthResponse) SetAuthToken ¶
func (s *AuthResponse) SetAuthToken(val string)
SetAuthToken sets the value of AuthToken.
func (*AuthResponse) UnmarshalJSON ¶
func (s *AuthResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements OAS client.
func NewClient ¶
func NewClient(serverURL string, opts ...ClientOption) (*Client, error)
NewClient initializes new Client defined by OAS.
func (*Client) GetAuthToken ¶
func (c *Client) GetAuthToken(ctx context.Context, request OptAuthRequest) (GetAuthTokenRes, error)
GetAuthToken invokes GetAuthToken operation.
POST /user/internal/v1/clients/auth
func (*Client) GetClientById ¶
func (c *Client) GetClientById(ctx context.Context, params GetClientByIdParams) (GetClientByIdRes, error)
GetClientById invokes GetClientById operation.
GET /user/internal/v1/clients/{client_id}
func (*Client) GetWalletById ¶
func (c *Client) GetWalletById(ctx context.Context, params GetWalletByIdParams) (GetWalletByIdRes, error)
GetWalletById invokes GetWalletById operation.
GET /user/internal/v1/clients/{client_id}/wallets/{wallet_id}
type ClientOption ¶
type ClientOption interface {
// contains filtered or unexported methods
}
ClientOption is client config option.
func WithClient ¶
func WithClient(client ht.Client) ClientOption
WithClient specifies http client to use.
type Error ¶
type Error struct { // Human-redable error message. Message string `json:"message"` // Machine-redable error message. Code string `json:"code"` }
Ref: #/components/schemas/Error
func (*Error) GetMessage ¶
GetMessage returns the value of Message.
func (*Error) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Error) SetMessage ¶
SetMessage sets the value of Message.
func (*Error) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type GetAuthTokenBadRequest ¶
type GetAuthTokenBadRequest Error
func (*GetAuthTokenBadRequest) Decode ¶
func (s *GetAuthTokenBadRequest) Decode(d *jx.Decoder) error
Decode decodes GetAuthTokenBadRequest from json.
func (*GetAuthTokenBadRequest) Encode ¶
func (s *GetAuthTokenBadRequest) Encode(e *jx.Encoder)
Encode encodes GetAuthTokenBadRequest as json.
func (*GetAuthTokenBadRequest) MarshalJSON ¶
func (s *GetAuthTokenBadRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetAuthTokenBadRequest) UnmarshalJSON ¶
func (s *GetAuthTokenBadRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GetAuthTokenForbidden ¶
type GetAuthTokenForbidden Error
func (*GetAuthTokenForbidden) Decode ¶
func (s *GetAuthTokenForbidden) Decode(d *jx.Decoder) error
Decode decodes GetAuthTokenForbidden from json.
func (*GetAuthTokenForbidden) Encode ¶
func (s *GetAuthTokenForbidden) Encode(e *jx.Encoder)
Encode encodes GetAuthTokenForbidden as json.
func (*GetAuthTokenForbidden) MarshalJSON ¶
func (s *GetAuthTokenForbidden) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetAuthTokenForbidden) UnmarshalJSON ¶
func (s *GetAuthTokenForbidden) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GetAuthTokenInternalServerError ¶
type GetAuthTokenInternalServerError Error
func (*GetAuthTokenInternalServerError) Decode ¶
func (s *GetAuthTokenInternalServerError) Decode(d *jx.Decoder) error
Decode decodes GetAuthTokenInternalServerError from json.
func (*GetAuthTokenInternalServerError) Encode ¶
func (s *GetAuthTokenInternalServerError) Encode(e *jx.Encoder)
Encode encodes GetAuthTokenInternalServerError as json.
func (*GetAuthTokenInternalServerError) MarshalJSON ¶
func (s *GetAuthTokenInternalServerError) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetAuthTokenInternalServerError) UnmarshalJSON ¶
func (s *GetAuthTokenInternalServerError) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GetAuthTokenNotFound ¶
type GetAuthTokenNotFound Error
func (*GetAuthTokenNotFound) Decode ¶
func (s *GetAuthTokenNotFound) Decode(d *jx.Decoder) error
Decode decodes GetAuthTokenNotFound from json.
func (*GetAuthTokenNotFound) Encode ¶
func (s *GetAuthTokenNotFound) Encode(e *jx.Encoder)
Encode encodes GetAuthTokenNotFound as json.
func (*GetAuthTokenNotFound) MarshalJSON ¶
func (s *GetAuthTokenNotFound) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetAuthTokenNotFound) UnmarshalJSON ¶
func (s *GetAuthTokenNotFound) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GetAuthTokenRes ¶
type GetAuthTokenRes interface {
// contains filtered or unexported methods
}
type GetClientByIdBadRequest ¶
type GetClientByIdBadRequest Error
func (*GetClientByIdBadRequest) Decode ¶
func (s *GetClientByIdBadRequest) Decode(d *jx.Decoder) error
Decode decodes GetClientByIdBadRequest from json.
func (*GetClientByIdBadRequest) Encode ¶
func (s *GetClientByIdBadRequest) Encode(e *jx.Encoder)
Encode encodes GetClientByIdBadRequest as json.
func (*GetClientByIdBadRequest) MarshalJSON ¶
func (s *GetClientByIdBadRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetClientByIdBadRequest) UnmarshalJSON ¶
func (s *GetClientByIdBadRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GetClientByIdInternalServerError ¶
type GetClientByIdInternalServerError Error
func (*GetClientByIdInternalServerError) Decode ¶
func (s *GetClientByIdInternalServerError) Decode(d *jx.Decoder) error
Decode decodes GetClientByIdInternalServerError from json.
func (*GetClientByIdInternalServerError) Encode ¶
func (s *GetClientByIdInternalServerError) Encode(e *jx.Encoder)
Encode encodes GetClientByIdInternalServerError as json.
func (*GetClientByIdInternalServerError) MarshalJSON ¶
func (s *GetClientByIdInternalServerError) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetClientByIdInternalServerError) UnmarshalJSON ¶
func (s *GetClientByIdInternalServerError) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GetClientByIdNotFound ¶
type GetClientByIdNotFound Error
func (*GetClientByIdNotFound) Decode ¶
func (s *GetClientByIdNotFound) Decode(d *jx.Decoder) error
Decode decodes GetClientByIdNotFound from json.
func (*GetClientByIdNotFound) Encode ¶
func (s *GetClientByIdNotFound) Encode(e *jx.Encoder)
Encode encodes GetClientByIdNotFound as json.
func (*GetClientByIdNotFound) MarshalJSON ¶
func (s *GetClientByIdNotFound) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetClientByIdNotFound) UnmarshalJSON ¶
func (s *GetClientByIdNotFound) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GetClientByIdParams ¶
type GetClientByIdParams struct { // Идентификатор. ClientID string }
GetClientByIdParams is parameters of GetClientById operation.
type GetClientByIdRes ¶
type GetClientByIdRes interface {
// contains filtered or unexported methods
}
type GetWalletByIdBadRequest ¶
type GetWalletByIdBadRequest Error
func (*GetWalletByIdBadRequest) Decode ¶
func (s *GetWalletByIdBadRequest) Decode(d *jx.Decoder) error
Decode decodes GetWalletByIdBadRequest from json.
func (*GetWalletByIdBadRequest) Encode ¶
func (s *GetWalletByIdBadRequest) Encode(e *jx.Encoder)
Encode encodes GetWalletByIdBadRequest as json.
func (*GetWalletByIdBadRequest) MarshalJSON ¶
func (s *GetWalletByIdBadRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetWalletByIdBadRequest) UnmarshalJSON ¶
func (s *GetWalletByIdBadRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GetWalletByIdInternalServerError ¶
type GetWalletByIdInternalServerError Error
func (*GetWalletByIdInternalServerError) Decode ¶
func (s *GetWalletByIdInternalServerError) Decode(d *jx.Decoder) error
Decode decodes GetWalletByIdInternalServerError from json.
func (*GetWalletByIdInternalServerError) Encode ¶
func (s *GetWalletByIdInternalServerError) Encode(e *jx.Encoder)
Encode encodes GetWalletByIdInternalServerError as json.
func (*GetWalletByIdInternalServerError) MarshalJSON ¶
func (s *GetWalletByIdInternalServerError) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetWalletByIdInternalServerError) UnmarshalJSON ¶
func (s *GetWalletByIdInternalServerError) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GetWalletByIdNotFound ¶
type GetWalletByIdNotFound Error
func (*GetWalletByIdNotFound) Decode ¶
func (s *GetWalletByIdNotFound) Decode(d *jx.Decoder) error
Decode decodes GetWalletByIdNotFound from json.
func (*GetWalletByIdNotFound) Encode ¶
func (s *GetWalletByIdNotFound) Encode(e *jx.Encoder)
Encode encodes GetWalletByIdNotFound as json.
func (*GetWalletByIdNotFound) MarshalJSON ¶
func (s *GetWalletByIdNotFound) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetWalletByIdNotFound) UnmarshalJSON ¶
func (s *GetWalletByIdNotFound) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GetWalletByIdParams ¶
type GetWalletByIdParams struct { // Идентификатор пользователя. ClientID string // Идентификатор кошелька. WalletID string }
GetWalletByIdParams is parameters of GetWalletById operation.
type GetWalletByIdRes ¶
type GetWalletByIdRes interface {
// contains filtered or unexported methods
}
type Handler ¶
type Handler interface { // GetAuthToken implements GetAuthToken operation. // // POST /user/internal/v1/clients/auth GetAuthToken(ctx context.Context, req OptAuthRequest) (GetAuthTokenRes, error) // GetClientById implements GetClientById operation. // // GET /user/internal/v1/clients/{client_id} GetClientById(ctx context.Context, params GetClientByIdParams) (GetClientByIdRes, error) // GetWalletById implements GetWalletById operation. // // GET /user/internal/v1/clients/{client_id}/wallets/{wallet_id} GetWalletById(ctx context.Context, params GetWalletByIdParams) (GetWalletByIdRes, error) }
Handler handles operations described by OpenAPI v3 specification.
type Invoker ¶
type Invoker interface { // GetAuthToken invokes GetAuthToken operation. // // POST /user/internal/v1/clients/auth GetAuthToken(ctx context.Context, request OptAuthRequest) (GetAuthTokenRes, error) // GetClientById invokes GetClientById operation. // // GET /user/internal/v1/clients/{client_id} GetClientById(ctx context.Context, params GetClientByIdParams) (GetClientByIdRes, error) // GetWalletById invokes GetWalletById operation. // // GET /user/internal/v1/clients/{client_id}/wallets/{wallet_id} GetWalletById(ctx context.Context, params GetWalletByIdParams) (GetWalletByIdRes, error) }
Invoker invokes operations described by OpenAPI v3 specification.
type Labeler ¶
type Labeler struct {
// contains filtered or unexported fields
}
Labeler is used to allow adding custom attributes to the server request metrics.
func LabelerFromContext ¶
LabelerFromContext retrieves the Labeler from the provided context, if present.
If no Labeler was found in the provided context a new, empty Labeler is returned and the second return value is false. In this case it is safe to use the Labeler but any attributes added to it will not be used.
func (*Labeler) AttributeSet ¶
AttributeSet returns the attributes added to the Labeler as an attribute.Set.
type OptAuthRequest ¶
type OptAuthRequest struct { Value AuthRequest Set bool }
OptAuthRequest is optional AuthRequest.
func NewOptAuthRequest ¶
func NewOptAuthRequest(v AuthRequest) OptAuthRequest
NewOptAuthRequest returns new OptAuthRequest with value set to v.
func (*OptAuthRequest) Decode ¶
func (o *OptAuthRequest) Decode(d *jx.Decoder) error
Decode decodes AuthRequest from json.
func (OptAuthRequest) Encode ¶
func (o OptAuthRequest) Encode(e *jx.Encoder)
Encode encodes AuthRequest as json.
func (OptAuthRequest) Get ¶
func (o OptAuthRequest) Get() (v AuthRequest, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptAuthRequest) IsSet ¶
func (o OptAuthRequest) IsSet() bool
IsSet returns true if OptAuthRequest was set.
func (OptAuthRequest) MarshalJSON ¶
func (s OptAuthRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptAuthRequest) Or ¶
func (o OptAuthRequest) Or(d AuthRequest) AuthRequest
Or returns value if set, or given parameter if does not.
func (*OptAuthRequest) UnmarshalJSON ¶
func (s *OptAuthRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptString ¶
OptString is optional string.
func NewOptString ¶
NewOptString returns new OptString with value set to v.
func (OptString) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptString) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type Option ¶
type Option interface { ServerOption ClientOption }
Option is config option.
func WithMeterProvider ¶
func WithMeterProvider(provider metric.MeterProvider) Option
WithMeterProvider specifies a meter provider to use for creating a meter.
If none is specified, the otel.GetMeterProvider() is used.
func WithTracerProvider ¶
func WithTracerProvider(provider trace.TracerProvider) Option
WithTracerProvider specifies a tracer provider to use for creating a tracer.
If none is specified, the global provider is used.
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
Route is route object.
func (Route) OperationID ¶
OperationID returns OpenAPI operationId.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements http server based on OpenAPI v3 specification and calls Handler to handle requests.
func NewServer ¶
func NewServer(h Handler, opts ...ServerOption) (*Server, error)
NewServer creates new Server.
type ServerOption ¶
type ServerOption interface {
// contains filtered or unexported methods
}
ServerOption is server config option.
func WithErrorHandler ¶
func WithErrorHandler(h ErrorHandler) ServerOption
WithErrorHandler specifies error handler to use.
func WithMaxMultipartMemory ¶
func WithMaxMultipartMemory(max int64) ServerOption
WithMaxMultipartMemory specifies limit of memory for storing file parts. File parts which can't be stored in memory will be stored on disk in temporary files.
func WithMethodNotAllowed ¶
func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption
WithMethodNotAllowed specifies Method Not Allowed handler to use.
func WithMiddleware ¶
func WithMiddleware(m ...Middleware) ServerOption
WithMiddleware specifies middlewares to use.
func WithNotFound ¶
func WithNotFound(notFound http.HandlerFunc) ServerOption
WithNotFound specifies Not Found handler to use.
func WithPathPrefix ¶
func WithPathPrefix(prefix string) ServerOption
WithPathPrefix specifies server path prefix.
type UnimplementedHandler ¶
type UnimplementedHandler struct{}
UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.
func (UnimplementedHandler) GetAuthToken ¶
func (UnimplementedHandler) GetAuthToken(ctx context.Context, req OptAuthRequest) (r GetAuthTokenRes, _ error)
GetAuthToken implements GetAuthToken operation.
POST /user/internal/v1/clients/auth
func (UnimplementedHandler) GetClientById ¶
func (UnimplementedHandler) GetClientById(ctx context.Context, params GetClientByIdParams) (r GetClientByIdRes, _ error)
GetClientById implements GetClientById operation.
GET /user/internal/v1/clients/{client_id}
func (UnimplementedHandler) GetWalletById ¶
func (UnimplementedHandler) GetWalletById(ctx context.Context, params GetWalletByIdParams) (r GetWalletByIdRes, _ error)
GetWalletById implements GetWalletById operation.
GET /user/internal/v1/clients/{client_id}/wallets/{wallet_id}
type User ¶
type User struct { ClientID uuid.UUID `json:"client_id"` FirstName OptString `json:"first_name"` LastName OptString `json:"last_name"` Email string `json:"email"` Wallets []string `json:"wallets"` }
Ref: #/components/schemas/User
func (*User) GetClientID ¶
GetClientID returns the value of ClientID.
func (*User) GetFirstName ¶
GetFirstName returns the value of FirstName.
func (*User) GetLastName ¶
GetLastName returns the value of LastName.
func (*User) GetWallets ¶
GetWallets returns the value of Wallets.
func (*User) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*User) SetClientID ¶
SetClientID sets the value of ClientID.
func (*User) SetFirstName ¶
SetFirstName sets the value of FirstName.
func (*User) SetLastName ¶
SetLastName sets the value of LastName.
func (*User) SetWallets ¶
SetWallets sets the value of Wallets.
func (*User) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type Wallet ¶
Ref: #/components/schemas/Wallet
func (*Wallet) GetPrivateKey ¶
GetPrivateKey returns the value of PrivateKey.
func (*Wallet) GetPublicKey ¶
GetPublicKey returns the value of PublicKey.
func (*Wallet) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Wallet) SetPrivateKey ¶
SetPrivateKey sets the value of PrivateKey.
func (*Wallet) SetPublicKey ¶
SetPublicKey sets the value of PublicKey.
func (*Wallet) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
Source Files ¶
- oas_cfg_gen.go
- oas_client_gen.go
- oas_handlers_gen.go
- oas_interfaces_gen.go
- oas_json_gen.go
- oas_labeler_gen.go
- oas_middleware_gen.go
- oas_parameters_gen.go
- oas_request_decoders_gen.go
- oas_request_encoders_gen.go
- oas_response_decoders_gen.go
- oas_response_encoders_gen.go
- oas_router_gen.go
- oas_schemas_gen.go
- oas_server_gen.go
- oas_unimplemented_gen.go
- oas_validators_gen.go