animo

package
v2.0.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2019 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCreateProfileFromIdentityEndpoint

func MakeCreateProfileFromIdentityEndpoint(svc AnimoService) endpoint.Endpoint

func MakeGetProfilesEndpoint

func MakeGetProfilesEndpoint(svc AnimoService) endpoint.Endpoint

func MakeInternalGetProfilesEndpoint

func MakeInternalGetProfilesEndpoint(svc AnimoService) endpoint.Endpoint

func MakeResolveProfilesAliasesEndpoint

func MakeResolveProfilesAliasesEndpoint(svc AnimoService) endpoint.Endpoint

func MakeSearchProfilesEndpoint

func MakeSearchProfilesEndpoint(svc AnimoService) endpoint.Endpoint

func MakeUpdateProfilesEndpoint

func MakeUpdateProfilesEndpoint(svc AnimoService) endpoint.Endpoint

Types

type AnimoService

type AnimoService interface {
	CreateProfileFromIdentity(ctx context.Context, identity string, email string) (*Profile, error)
	ResolveProfilesAliases(context context.Context, profilesAliases []string) ([]string, error)
	GetProfiles(context context.Context, profilesIds []string) ([]*Profile, error)
	SearchProfiles(context context.Context, filter string) ([]*Profile, error)
	UpdateProfiles(context context.Context, profilesIds []string, profiles []*Profile) ([]*Profile, error)
}

type CreateProfileFromIdentityRequest

type CreateProfileFromIdentityRequest struct {
	Identity string `json:"identity"`
	Email    string `json:"email"`
}

type CreateProfileFromIdentityResponse

type CreateProfileFromIdentityResponse struct {
	CreateProfileFromIdentityRequest
	Err string `json:"err,omitempty"`
}

type Endpoints

type Endpoints struct {
	ResolveAliasesEndpoint            endpoint.Endpoint
	InternalGetProfilesEndpoint       endpoint.Endpoint
	GetProfilesEndpoint               endpoint.Endpoint
	SearchProfilesEndpoint            endpoint.Endpoint
	UpdateProfilesEndpoint            endpoint.Endpoint
	CreateProfileFromIdentityEndpoint endpoint.Endpoint
}

type GetProfilesRequest

type GetProfilesRequest struct {
	ProfilesAliases []string `json:"profilesAliases"`
}

type GetProfilesResponse

type GetProfilesResponse struct {
	Profiles []*Profile `json:"profiles"`
	Err      string     `json:"err,omitempty"`
}

type InternalGetProfilesRequest

type InternalGetProfilesRequest struct {
	ProfilesIds []string `json:"profilesIds"`
}

type InternalGetProfilesResponse

type InternalGetProfilesResponse struct {
	Profiles []*Profile `json:"profiles"`
	Err      string     `json:"err,omitempty"`
}

type Profile

type Profile struct {
	ID       string `json:"id"`
	Identity string `json:"-"`
	Alias    string `json:"alias"`
	Name     string `json:"name"`
	Email    string `json:"email"`
	Picture  string `json:"picture"`
}

type ResolveProfilesAliasesRequest

type ResolveProfilesAliasesRequest struct {
	ProfilesAliases []string `json:"profilesAliases"`
}

type ResolveProfilesAliasesResponse

type ResolveProfilesAliasesResponse struct {
	ProfilesIds []string `json:"profilesIds"`
	Err         string   `json:"err,omitempty"`
}

type SearchProfilesRequest

type SearchProfilesRequest struct {
	Filter string `json:"filter"`
}

type SearchProfilesResponse

type SearchProfilesResponse struct {
	Profiles []*Profile `json:"profiles"`
	Err      string     `json:"err,omitempty"`
}

type UpdateProfilesRequest

type UpdateProfilesRequest struct {
	ProfilesAliases []string   `json:"profilesAliases"`
	Profiles        []*Profile `json:"profiles"`
}

type UpdateProfilesResponse

type UpdateProfilesResponse struct {
	Profiles []*Profile `json:"profiles"`
	Err      string     `json:"err,omitempty"`
}

Directories

Path Synopsis
auth
jwt
service
transport

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL