Documentation ¶
Index ¶
- type Application
- type ApplicationCreateIn
- type ApplicationCreateOut
- type ApplicationDeleteIn
- type ApplicationDeleteOut
- type ApplicationGetIn
- type ApplicationGetOut
- type ApplicationListIn
- type ApplicationListOut
- type ApplicationUpdateIn
- type ApplicationUpdateOut
- type Endpoint
- type EndpointCreateIn
- type EndpointCreateOut
- type EndpointDeleteIn
- type EndpointDeleteOut
- type EndpointGetIn
- type EndpointGetOut
- type EndpointListIn
- type EndpointListOut
- type EndpointRule
- type EndpointRuleCreateIn
- type EndpointRuleCreateOut
- type EndpointRuleDeleteIn
- type EndpointRuleDeleteOut
- type EndpointRuleGetIn
- type EndpointRuleGetOut
- type EndpointRuleListIn
- type EndpointRuleListOut
- type EndpointRuleUpdateIn
- type EndpointRuleUpdateOut
- type EndpointUpdateIn
- type EndpointUpdateOut
- type Message
- type MessageCreateIn
- type MessageCreateOut
- type Sdk
- type Workspace
- type WorkspaceAuthenticateIn
- type WorkspaceAuthenticateOut
- type WorkspaceGetIn
- type WorkspaceGetOut
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application interface { Create(ctx context.Context, in *ApplicationCreateIn) (*ApplicationCreateOut, error) Update(ctx context.Context, in *ApplicationUpdateIn) (*ApplicationUpdateOut, error) Delete(ctx context.Context, in *ApplicationDeleteIn) (*ApplicationDeleteOut, error) List(ctx context.Context, in *ApplicationListIn) (*ApplicationListOut, error) Get(ctx context.Context, in *ApplicationGetIn) (*ApplicationGetOut, error) }
type ApplicationCreateIn ¶
func (*ApplicationCreateIn) Validate ¶
func (in *ApplicationCreateIn) Validate() error
type ApplicationCreateOut ¶
type ApplicationCreateOut struct {
Doc *entities.Application
}
type ApplicationDeleteIn ¶
func (*ApplicationDeleteIn) Validate ¶
func (in *ApplicationDeleteIn) Validate() error
type ApplicationDeleteOut ¶
type ApplicationDeleteOut struct {
Doc *entities.Application
}
type ApplicationGetIn ¶
func (*ApplicationGetIn) Validate ¶
func (in *ApplicationGetIn) Validate() error
type ApplicationGetOut ¶
type ApplicationGetOut struct {
Doc *entities.Application
}
type ApplicationListIn ¶
type ApplicationListIn struct { *entities.PagingQuery WsId string }
func (*ApplicationListIn) Validate ¶
func (in *ApplicationListIn) Validate() error
type ApplicationListOut ¶
type ApplicationListOut struct { Data []entities.Application Count int64 }
type ApplicationUpdateIn ¶
func (*ApplicationUpdateIn) Validate ¶
func (in *ApplicationUpdateIn) Validate() error
type ApplicationUpdateOut ¶
type ApplicationUpdateOut struct {
Doc *entities.Application
}
type Endpoint ¶
type Endpoint interface { Create(ctx context.Context, in *EndpointCreateIn) (*EndpointCreateOut, error) Update(ctx context.Context, in *EndpointUpdateIn) (*EndpointUpdateOut, error) Delete(ctx context.Context, in *EndpointDeleteIn) (*EndpointDeleteOut, error) List(ctx context.Context, in *EndpointListIn) (*EndpointListOut, error) Get(ctx context.Context, in *EndpointGetIn) (*EndpointGetOut, error) }
type EndpointCreateIn ¶
type EndpointCreateIn struct { WsId string AppId string Name string SecretKey string Uri string Method string }
func (*EndpointCreateIn) Validate ¶
func (in *EndpointCreateIn) Validate() error
type EndpointCreateOut ¶
type EndpointDeleteIn ¶
func (*EndpointDeleteIn) Validate ¶
func (in *EndpointDeleteIn) Validate() error
type EndpointDeleteOut ¶
type EndpointGetIn ¶
func (*EndpointGetIn) Validate ¶
func (in *EndpointGetIn) Validate() error
type EndpointGetOut ¶
type EndpointListIn ¶
type EndpointListIn struct { *entities.PagingQuery WsId string AppId string }
func (*EndpointListIn) Validate ¶
func (in *EndpointListIn) Validate() error
type EndpointListOut ¶
type EndpointRule ¶
type EndpointRule interface { Create(ctx context.Context, in *EndpointRuleCreateIn) (*EndpointRuleCreateOut, error) Update(ctx context.Context, in *EndpointRuleUpdateIn) (*EndpointRuleUpdateOut, error) Delete(ctx context.Context, in *EndpointRuleDeleteIn) (*EndpointRuleDeleteOut, error) List(ctx context.Context, in *EndpointRuleListIn) (*EndpointRuleListOut, error) Get(ctx context.Context, in *EndpointRuleGetIn) (*EndpointRuleGetOut, error) }
type EndpointRuleCreateIn ¶
type EndpointRuleCreateIn struct { WsId string EpId string Name string Priority int32 Exclusionary bool ConditionSource string ConditionExpression string }
func (*EndpointRuleCreateIn) Validate ¶
func (in *EndpointRuleCreateIn) Validate() error
type EndpointRuleCreateOut ¶
type EndpointRuleCreateOut struct {
Doc *entities.EndpointRule
}
type EndpointRuleDeleteIn ¶
func (*EndpointRuleDeleteIn) Validate ¶
func (in *EndpointRuleDeleteIn) Validate() error
type EndpointRuleDeleteOut ¶
type EndpointRuleDeleteOut struct {
Doc *entities.EndpointRule
}
type EndpointRuleGetIn ¶
func (*EndpointRuleGetIn) Validate ¶
func (in *EndpointRuleGetIn) Validate() error
type EndpointRuleGetOut ¶
type EndpointRuleGetOut struct {
Doc *entities.EndpointRule
}
type EndpointRuleListIn ¶
type EndpointRuleListIn struct { *entities.PagingQuery WsId string AppId string EpId string }
func (*EndpointRuleListIn) Validate ¶
func (in *EndpointRuleListIn) Validate() error
type EndpointRuleListOut ¶
type EndpointRuleListOut struct { Data []entities.EndpointRule Count int64 }
type EndpointRuleUpdateIn ¶
type EndpointRuleUpdateIn struct { WsId string Id string Name string Priority int32 Exclusionary bool ConditionSource string ConditionExpression string }
func (*EndpointRuleUpdateIn) Validate ¶
func (in *EndpointRuleUpdateIn) Validate() error
type EndpointRuleUpdateOut ¶
type EndpointRuleUpdateOut struct {
Doc *entities.EndpointRule
}
type EndpointUpdateIn ¶
func (*EndpointUpdateIn) Validate ¶
func (in *EndpointUpdateIn) Validate() error
type EndpointUpdateOut ¶
type Message ¶
type Message interface {
Create(ctx context.Context, in *MessageCreateIn) (*MessageCreateOut, error)
}
type MessageCreateIn ¶
type MessageCreateIn struct { WsId string Tier string AppId string Type string Body string Headers entities.Header Metadata entities.Metadata }
func (*MessageCreateIn) Validate ¶
func (in *MessageCreateIn) Validate() error
type MessageCreateOut ¶
type Sdk ¶
type Sdk interface { Workspace() Workspace Application() Application Endpoint() Endpoint EndpointRule() EndpointRule Message() Message }
func New ¶
func New( conf *config.Config, logger logging.Logger, infra *infrastructure.Infrastructure, repositories repositories.Repositories, ) Sdk
type Workspace ¶
type Workspace interface { Authenticate(ctx context.Context, req *WorkspaceAuthenticateIn) (*WorkspaceAuthenticateOut, error) Get(ctx context.Context, in *WorkspaceGetIn) (*WorkspaceGetOut, error) }
type WorkspaceAuthenticateIn ¶
func (*WorkspaceAuthenticateIn) Validate ¶
func (in *WorkspaceAuthenticateIn) Validate() error
type WorkspaceAuthenticateOut ¶
type WorkspaceAuthenticateOut struct {
Credentials *entities.WorkspaceCredentials
}
type WorkspaceGetIn ¶
func (*WorkspaceGetIn) Validate ¶
func (in *WorkspaceGetIn) Validate() error
type WorkspaceGetOut ¶
Source Files ¶
- application.go
- application_create.go
- application_delete.go
- application_get.go
- application_list.go
- application_update.go
- endpoint.go
- endpoint_create.go
- endpoint_delete.go
- endpoint_get.go
- endpoint_list.go
- endpoint_rule.go
- endpoint_rule_create.go
- endpoint_rule_delete.go
- endpoint_rule_get.go
- endpoint_rule_list.go
- endpoint_rule_update.go
- endpoint_update.go
- message.go
- message_create.go
- usecase.go
- workspace.go
- workspace_authenticate.go
- workspace_get.go
Click to show internal directories.
Click to hide internal directories.