Documentation ¶
Index ¶
- type GatewayServer
- type GrpcServer
- func (gs *GrpcServer) Close() error
- func (gs *GrpcServer) CreateAccount(ctx context.Context, request *postaradminv1.CreateAccountRequest) (response *postaradminv1.CreateAccountResponse, err error)
- func (gs *GrpcServer) CreateSpace(ctx context.Context, request *postaradminv1.CreateSpaceRequest) (response *postaradminv1.CreateSpaceResponse, err error)
- func (gs *GrpcServer) CreateTemplate(ctx context.Context, request *postaradminv1.CreateTemplateRequest) (response *postaradminv1.CreateTemplateResponse, err error)
- func (gs *GrpcServer) DeleteTemplate(ctx context.Context, request *postaradminv1.DeleteTemplateRequest) (response *postaradminv1.DeleteTemplateResponse, err error)
- func (gs *GrpcServer) GetAccount(ctx context.Context, request *postaradminv1.GetAccountRequest) (response *postaradminv1.GetAccountResponse, err error)
- func (gs *GrpcServer) GetSpace(ctx context.Context, request *postaradminv1.GetSpaceRequest) (response *postaradminv1.GetSpaceResponse, err error)
- func (gs *GrpcServer) GetTemplate(ctx context.Context, request *postaradminv1.GetTemplateRequest) (response *postaradminv1.GetTemplateResponse, err error)
- func (gs *GrpcServer) ListAccounts(ctx context.Context, request *postaradminv1.ListAccountsRequest) (response *postaradminv1.ListAccountsResponse, err error)
- func (gs *GrpcServer) ListSpaces(ctx context.Context, request *postaradminv1.ListSpacesRequest) (response *postaradminv1.ListSpacesResponse, err error)
- func (gs *GrpcServer) ListTemplates(ctx context.Context, request *postaradminv1.ListTemplatesRequest) (response *postaradminv1.ListTemplatesResponse, err error)
- func (gs *GrpcServer) Serve() error
- func (gs *GrpcServer) UpdateAccount(ctx context.Context, request *postaradminv1.UpdateAccountRequest) (response *postaradminv1.UpdateAccountResponse, err error)
- func (gs *GrpcServer) UpdateSpace(ctx context.Context, request *postaradminv1.UpdateSpaceRequest) (response *postaradminv1.UpdateSpaceResponse, err error)
- func (gs *GrpcServer) UpdateTemplate(ctx context.Context, request *postaradminv1.UpdateTemplateRequest) (response *postaradminv1.UpdateTemplateResponse, err error)
- type Server
- func New(conf *config.PostarAdminConfig, spaceService service.SpaceService, ...) (Server, error)
- func NewGatewayServer(conf *config.PostarAdminConfig, spaceService service.SpaceService, ...) (Server, error)
- func NewGrpcServer(conf *config.PostarAdminConfig, spaceService service.SpaceService, ...) (Server, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GatewayServer ¶
type GatewayServer struct {
// contains filtered or unexported fields
}
func (*GatewayServer) Close ¶
func (gs *GatewayServer) Close() error
func (*GatewayServer) Serve ¶
func (gs *GatewayServer) Serve() error
type GrpcServer ¶
type GrpcServer struct { postaradminv1.UnimplementedSpaceServiceServer postaradminv1.UnimplementedAccountServiceServer postaradminv1.UnimplementedTemplateServiceServer // contains filtered or unexported fields }
func (*GrpcServer) Close ¶
func (gs *GrpcServer) Close() error
func (*GrpcServer) CreateAccount ¶
func (gs *GrpcServer) CreateAccount(ctx context.Context, request *postaradminv1.CreateAccountRequest) (response *postaradminv1.CreateAccountResponse, err error)
func (*GrpcServer) CreateSpace ¶
func (gs *GrpcServer) CreateSpace(ctx context.Context, request *postaradminv1.CreateSpaceRequest) (response *postaradminv1.CreateSpaceResponse, err error)
func (*GrpcServer) CreateTemplate ¶
func (gs *GrpcServer) CreateTemplate(ctx context.Context, request *postaradminv1.CreateTemplateRequest) (response *postaradminv1.CreateTemplateResponse, err error)
func (*GrpcServer) DeleteTemplate ¶
func (gs *GrpcServer) DeleteTemplate(ctx context.Context, request *postaradminv1.DeleteTemplateRequest) (response *postaradminv1.DeleteTemplateResponse, err error)
func (*GrpcServer) GetAccount ¶
func (gs *GrpcServer) GetAccount(ctx context.Context, request *postaradminv1.GetAccountRequest) (response *postaradminv1.GetAccountResponse, err error)
func (*GrpcServer) GetSpace ¶
func (gs *GrpcServer) GetSpace(ctx context.Context, request *postaradminv1.GetSpaceRequest) (response *postaradminv1.GetSpaceResponse, err error)
func (*GrpcServer) GetTemplate ¶
func (gs *GrpcServer) GetTemplate(ctx context.Context, request *postaradminv1.GetTemplateRequest) (response *postaradminv1.GetTemplateResponse, err error)
func (*GrpcServer) ListAccounts ¶
func (gs *GrpcServer) ListAccounts(ctx context.Context, request *postaradminv1.ListAccountsRequest) (response *postaradminv1.ListAccountsResponse, err error)
func (*GrpcServer) ListSpaces ¶
func (gs *GrpcServer) ListSpaces(ctx context.Context, request *postaradminv1.ListSpacesRequest) (response *postaradminv1.ListSpacesResponse, err error)
func (*GrpcServer) ListTemplates ¶
func (gs *GrpcServer) ListTemplates(ctx context.Context, request *postaradminv1.ListTemplatesRequest) (response *postaradminv1.ListTemplatesResponse, err error)
func (*GrpcServer) Serve ¶
func (gs *GrpcServer) Serve() error
func (*GrpcServer) UpdateAccount ¶
func (gs *GrpcServer) UpdateAccount(ctx context.Context, request *postaradminv1.UpdateAccountRequest) (response *postaradminv1.UpdateAccountResponse, err error)
func (*GrpcServer) UpdateSpace ¶
func (gs *GrpcServer) UpdateSpace(ctx context.Context, request *postaradminv1.UpdateSpaceRequest) (response *postaradminv1.UpdateSpaceResponse, err error)
func (*GrpcServer) UpdateTemplate ¶
func (gs *GrpcServer) UpdateTemplate(ctx context.Context, request *postaradminv1.UpdateTemplateRequest) (response *postaradminv1.UpdateTemplateResponse, err error)
type Server ¶
func New ¶
func New(conf *config.PostarAdminConfig, spaceService service.SpaceService, accountService service.AccountService, templateService service.TemplateService) (Server, error)
func NewGatewayServer ¶
func NewGatewayServer(conf *config.PostarAdminConfig, spaceService service.SpaceService, accountService service.AccountService, templateService service.TemplateService) (Server, error)
func NewGrpcServer ¶
func NewGrpcServer(conf *config.PostarAdminConfig, spaceService service.SpaceService, accountService service.AccountService, templateService service.TemplateService) (Server, error)
Click to show internal directories.
Click to hide internal directories.