Documentation ¶
Index ¶
- Constants
- Variables
- func MakePermissionDenied(err error) *goa.ServiceError
- func NewAccountsEndpoint(s Service, authBasicFn security.AuthBasicFunc) goa.Endpoint
- func NewGroupsEndpoint(s Service, authBasicFn security.AuthBasicFunc) goa.Endpoint
- type Account
- type AccountsPayload
- type Auther
- type Client
- type Endpoints
- type Group
- type GroupsPayload
- type Service
Constants ¶
const ServiceName = "aggregate"
ServiceName is the name of the service as defined in the design. This is the same value that is set in the endpoint request contexts under the ServiceKey key.
Variables ¶
var MethodNames = [2]string{"accounts", "groups"}
MethodNames lists the service method names as defined in the design. These are the same values that are set in the endpoint request contexts under the MethodKey key.
Functions ¶
func MakePermissionDenied ¶
func MakePermissionDenied(err error) *goa.ServiceError
MakePermissionDenied builds a goa.ServiceError from an error.
func NewAccountsEndpoint ¶
func NewAccountsEndpoint(s Service, authBasicFn security.AuthBasicFunc) goa.Endpoint
NewAccountsEndpoint returns an endpoint function that calls the method "accounts" of service "aggregate".
func NewGroupsEndpoint ¶
func NewGroupsEndpoint(s Service, authBasicFn security.AuthBasicFunc) goa.Endpoint
NewGroupsEndpoint returns an endpoint function that calls the method "groups" of service "aggregate".
Types ¶
type Account ¶
type Account struct { // Temporary account identifier ID *int64 `gorm:"autoIncrement" json:"id,omitempty"` // IDP account identifier GUID *string `json:"guid,omitempty"` // Name of user Name string // Login of user Login string `gorm:"uniqueIndex" json:"login"` // Email of user Email string // Status of account Status *string }
type AccountsPayload ¶
AccountsPayload is the payload type of the aggregate service accounts method.
type Auther ¶
type Auther interface { // BasicAuth implements the authorization logic for the Basic security scheme. BasicAuth(ctx context.Context, user, pass string, schema *security.BasicScheme) (context.Context, error) }
Auther defines the authorization functions to be implemented by the service.
type Client ¶
Client is the "aggregate" service client.
type Endpoints ¶
Endpoints wraps the "aggregate" service endpoints.
func NewEndpoints ¶
NewEndpoints wraps the methods of the "aggregate" service with endpoints.
type GroupsPayload ¶
GroupsPayload is the payload type of the aggregate service groups method.
type Service ¶
type Service interface { // Account aggregation. Returns all known accounts Accounts(context.Context, *AccountsPayload) (res []*Account, err error) // Group aggregation. Returns list of all known groups Groups(context.Context, *GroupsPayload) (res []*Group, err error) }
Integration APIs