Documentation
¶
Index ¶
- func AppendRouters(log logging.Logger, appendTo *mux.Router, routers ...Router) *mux.Router
- func EncodeJSONResponse(i interface{}, status *int, w http.ResponseWriter) error
- func Logger(log logging.Logger, inner http.Handler, name string) http.Handler
- func NewCredentialLogContext(credential *Credential) logging.LogContext
- func NewIdentityLogContext(identity *Identity) logging.LogContext
- func NewLoginLogContext(login *Login) logging.LogContext
- func ReadFormFileToTempFile(r *http.Request, key string) (*os.File, error)
- type Address
- type Credential
- type CredentialsApiRouter
- type CredentialsApiServicer
- type IdentitiesApiRouter
- type IdentitiesApiServicer
- type Identity
- type IdentityID
- type InternalApiRouter
- type InternalApiServicer
- type Invite
- type InvitesApiRouter
- type InvitesApiServicer
- type LastLogin
- type LoggedIn
- type Login
- type OfacSearch
- type Phone
- type Register
- type RegisterAddress
- type RegisterPhone
- type Route
- type Router
- type Routes
- type SendInvite
- type TenantID
- type UpdateIdentity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendRouters ¶
AppendRouters creates a new router for any number of api routers
func EncodeJSONResponse ¶
func EncodeJSONResponse(i interface{}, status *int, w http.ResponseWriter) error
EncodeJSONResponse uses the json encoder to write an interface to the http response with an optional status code
func NewCredentialLogContext ¶
func NewCredentialLogContext(credential *Credential) logging.LogContext
func NewIdentityLogContext ¶
func NewIdentityLogContext(identity *Identity) logging.LogContext
func NewLoginLogContext ¶
func NewLoginLogContext(login *Login) logging.LogContext
Types ¶
type Credential ¶
type Credential = client.Credential
Credential - Description of a successful OpenID connect credential
type CredentialsApiRouter ¶
type CredentialsApiRouter interface {
DisableCredentials(http.ResponseWriter, *http.Request)
ListCredentials(http.ResponseWriter, *http.Request)
}
CredentialsApiRouter defines the required methods for binding the api requests to a responses for the CredentialsApi The CredentialsApiRouter implementation should parse necessary information from the http request, pass the data to a CredentialsApiServicer to perform the required actions, then write the service results to the http response.
type CredentialsApiServicer ¶
type CredentialsApiServicer interface {
DisableCredentials(tmw.TumblerClaims, string, string) (*Credential, error)
ListCredentials(tmw.TumblerClaims, string) ([]Credential, error)
}
CredentialsApiServicer defines the api actions for the CredentialsApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
type IdentitiesApiRouter ¶
type IdentitiesApiRouter interface {
DisableIdentity(http.ResponseWriter, *http.Request)
GetIdentity(http.ResponseWriter, *http.Request)
ListIdentities(http.ResponseWriter, *http.Request)
UpdateIdentity(http.ResponseWriter, *http.Request)
}
IdentitiesApiRouter defines the required methods for binding the api requests to a responses for the IdentitiesApi The IdentitiesApiRouter implementation should parse necessary information from the http request, pass the data to a IdentitiesApiServicer to perform the required actions, then write the service results to the http response.
type IdentitiesApiServicer ¶
type IdentitiesApiServicer interface {
DisableIdentity(tmw.TumblerClaims, string) error
GetIdentity(tmw.TumblerClaims, string) (*Identity, error)
ListIdentities(tmw.TumblerClaims, string) ([]Identity, error)
UpdateIdentity(tmw.TumblerClaims, string, UpdateIdentity) (*Identity, error)
}
IdentitiesApiServicer defines the api actions for the IdentitiesApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
type Identity ¶
Identity - Properties of an Identity. These users will under-go KYC checks thus all the information
type IdentityID ¶
func (*IdentityID) String ¶
func (id *IdentityID) String() string
type InternalApiRouter ¶
type InternalApiRouter interface {
LoginWithCredentials(http.ResponseWriter, *http.Request)
RegisterWithCredentials(http.ResponseWriter, *http.Request)
}
InternalApiRouter defines the required methods for binding the api requests to a responses for the InternalApi The InternalApiRouter implementation should parse necessary information from the http request, pass the data to a InternalApiServicer to perform the required actions, then write the service results to the http response.
type InternalApiServicer ¶
type InternalApiServicer interface {
LoginWithCredentials(*http.Request, Login, string, string) (*http.Cookie, error)
RegisterWithCredentials(*http.Request, Register, string, string) (*http.Cookie, error)
LandingURL() string
}
InternalApiServicer defines the api actions for the InternalApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
type InvitesApiRouter ¶
type InvitesApiRouter interface {
DeleteInvite(http.ResponseWriter, *http.Request)
ListInvites(http.ResponseWriter, *http.Request)
SendInvite(http.ResponseWriter, *http.Request)
}
InvitesApiRouter defines the required methods for binding the api requests to a responses for the InvitesApi The InvitesApiRouter implementation should parse necessary information from the http request, pass the data to a InvitesApiServicer to perform the required actions, then write the service results to the http response.
type InvitesApiServicer ¶
type InvitesApiServicer interface {
DisableInvite(tmw.TumblerClaims, string) error
ListInvites(tmw.TumblerClaims) ([]Invite, error)
SendInvite(tmw.TumblerClaims, SendInvite) (*Invite, string, error)
Redeem(code string) (*Invite, error)
}
InvitesApiServicer defines the api actions for the InvitesApi service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
type OfacSearch ¶
type OfacSearch = client.OfacSearch
type RegisterAddress ¶
type RegisterAddress = client.RegisterAddress
RegisterAddress - Address of the Identity
type Route ¶
type Route struct {
Name string
Method string
Pattern string
HandlerFunc http.HandlerFunc
}
A Route defines the parameters for an api endpoint
type Router ¶
type Router interface {
Routes() Routes
}
Router defines the required methods for retrieving api routes
type SendInvite ¶
type SendInvite = client.SendInvite
type UpdateIdentity ¶
type UpdateIdentity = client.UpdateIdentity
UpdateIdentity - Properties of an Identity. These users will under-go KYC checks thus all the information
Source Files
¶
- api.go
- logger.go
- mode_tenant_id.go
- model_address.go
- model_credential.go
- model_identity.go
- model_identity_id.go
- model_invite.go
- model_last_login.go
- model_logged_in.go
- model_login.go
- model_ofac_search.go
- model_phone.go
- model_register.go
- model_register_address.go
- model_register_phone.go
- model_send_invite.go
- model_update_identity.go
- routers.go