Documentation
¶
Index ¶
- Constants
- func AsServerError(err error) *servererror.ServerError
- func IsServerError(err error) bool
- func MustNewConfig(projectID string, apiSecret string) *config.Config
- func NewConfig(projectID string, apiSecret string) (*config.Config, error)
- func NewLoggingClientOption() api.ClientOption
- type Impl
- func (i *Impl) AuthTokens() authtoken.AuthToken
- func (i *Impl) EmailLinks() emaillink.EmailLink
- func (i *Impl) Projects() project.Project
- func (i *Impl) Sessions() session.Session
- func (i *Impl) Templates() template.Template
- func (i *Impl) Users() user.User
- func (i *Impl) Validations() validation.Validation
- type SDK
Constants ¶
View Source
const Version = "v0.4.2"
Variables ¶
This section is empty.
Functions ¶
func AsServerError ¶
func AsServerError(err error) *servererror.ServerError
AsServerError casts given error into a ServerError, if possible
func IsServerError ¶
IsServerError checks if given error is a ServerError
func MustNewConfig ¶
MustNewConfig returns new config and panics if projectID or apiSecret are not specified/empty this is a convenience function for config.NewConfig to avoid import cycles
func NewConfig ¶
NewConfig returns new config with sane defaults this is a convenience function for config.NewConfig to avoid import cycles
func NewLoggingClientOption ¶
func NewLoggingClientOption() api.ClientOption
NewLoggingClientOption enhances HTTP client to log requests/responses
Types ¶
type Impl ¶
func (*Impl) AuthTokens ¶
AuthTokens returns auth tokens client
func (*Impl) EmailLinks ¶
EmailLinks returns email links client
func (*Impl) Validations ¶
func (i *Impl) Validations() validation.Validation
Validations returns validation client
Directories
¶
| Path | Synopsis |
|---|---|
|
examples
|
|
|
basic
command
|
|
|
pkg
|
|
|
sdk/entity/api
Package api provides primitives to interact with the openapi HTTP API.
|
Package api provides primitives to interact with the openapi HTTP API. |
|
sdk/entity/common
Package common provides primitives to interact with the openapi HTTP API.
|
Package common provides primitives to interact with the openapi HTTP API. |
Click to show internal directories.
Click to hide internal directories.