Documentation
¶
Overview ¶
Package accountsvc is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterAccountsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAccountsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AccountsClient) error
- func RegisterAccountsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAccountsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AccountsServer) error
- func RegisterAccountsServer(s grpc.ServiceRegistrar, srv AccountsServer)
- type AccountsClient
- type AccountsServer
- type CreateAccountRequest
- func (*CreateAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAccountRequest) GetName() string
- func (x *CreateAccountRequest) GetSettings() *account.AccountSettings
- func (*CreateAccountRequest) ProtoMessage()
- func (x *CreateAccountRequest) ProtoReflect() protoreflect.Message
- func (x *CreateAccountRequest) Reset()
- func (x *CreateAccountRequest) String() string
- func (m *CreateAccountRequest) Validate() error
- type CreateAccountRequestValidationError
- func (e CreateAccountRequestValidationError) Cause() error
- func (e CreateAccountRequestValidationError) Error() string
- func (e CreateAccountRequestValidationError) ErrorName() string
- func (e CreateAccountRequestValidationError) Field() string
- func (e CreateAccountRequestValidationError) Key() bool
- func (e CreateAccountRequestValidationError) Reason() string
- type CreateAccountResponse
- func (*CreateAccountResponse) Descriptor() ([]byte, []int)deprecated
- func (*CreateAccountResponse) ProtoMessage()
- func (x *CreateAccountResponse) ProtoReflect() protoreflect.Message
- func (x *CreateAccountResponse) Reset()
- func (x *CreateAccountResponse) String() string
- func (m *CreateAccountResponse) Validate() error
- type CreateAccountResponseValidationError
- func (e CreateAccountResponseValidationError) Cause() error
- func (e CreateAccountResponseValidationError) Error() string
- func (e CreateAccountResponseValidationError) ErrorName() string
- func (e CreateAccountResponseValidationError) Field() string
- func (e CreateAccountResponseValidationError) Key() bool
- func (e CreateAccountResponseValidationError) Reason() string
- type GetAccountRequest
- func (*GetAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountRequest) GetName() string
- func (*GetAccountRequest) ProtoMessage()
- func (x *GetAccountRequest) ProtoReflect() protoreflect.Message
- func (x *GetAccountRequest) Reset()
- func (x *GetAccountRequest) String() string
- func (m *GetAccountRequest) Validate() error
- type GetAccountRequestValidationError
- func (e GetAccountRequestValidationError) Cause() error
- func (e GetAccountRequestValidationError) Error() string
- func (e GetAccountRequestValidationError) ErrorName() string
- func (e GetAccountRequestValidationError) Field() string
- func (e GetAccountRequestValidationError) Key() bool
- func (e GetAccountRequestValidationError) Reason() string
- type GetAccountResponse
- func (*GetAccountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountResponse) GetAccount() *account.Account
- func (*GetAccountResponse) ProtoMessage()
- func (x *GetAccountResponse) ProtoReflect() protoreflect.Message
- func (x *GetAccountResponse) Reset()
- func (x *GetAccountResponse) String() string
- func (m *GetAccountResponse) Validate() error
- type GetAccountResponseValidationError
- func (e GetAccountResponseValidationError) Cause() error
- func (e GetAccountResponseValidationError) Error() string
- func (e GetAccountResponseValidationError) ErrorName() string
- func (e GetAccountResponseValidationError) Field() string
- func (e GetAccountResponseValidationError) Key() bool
- func (e GetAccountResponseValidationError) Reason() string
- type GetAccountsRequest
- func (*GetAccountsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountsRequest) GetNames() []string
- func (*GetAccountsRequest) ProtoMessage()
- func (x *GetAccountsRequest) ProtoReflect() protoreflect.Message
- func (x *GetAccountsRequest) Reset()
- func (x *GetAccountsRequest) String() string
- func (m *GetAccountsRequest) Validate() error
- type GetAccountsRequestValidationError
- func (e GetAccountsRequestValidationError) Cause() error
- func (e GetAccountsRequestValidationError) Error() string
- func (e GetAccountsRequestValidationError) ErrorName() string
- func (e GetAccountsRequestValidationError) Field() string
- func (e GetAccountsRequestValidationError) Key() bool
- func (e GetAccountsRequestValidationError) Reason() string
- type GetAccountsResponse
- func (*GetAccountsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountsResponse) GetAccounts() []*account.Account
- func (*GetAccountsResponse) ProtoMessage()
- func (x *GetAccountsResponse) ProtoReflect() protoreflect.Message
- func (x *GetAccountsResponse) Reset()
- func (x *GetAccountsResponse) String() string
- func (m *GetAccountsResponse) Validate() error
- type GetAccountsResponseValidationError
- func (e GetAccountsResponseValidationError) Cause() error
- func (e GetAccountsResponseValidationError) Error() string
- func (e GetAccountsResponseValidationError) ErrorName() string
- func (e GetAccountsResponseValidationError) Field() string
- func (e GetAccountsResponseValidationError) Key() bool
- func (e GetAccountsResponseValidationError) Reason() string
- type UnimplementedAccountsServer
- func (UnimplementedAccountsServer) CreateAccount(context.Context, *CreateAccountRequest) (*CreateAccountResponse, error)
- func (UnimplementedAccountsServer) GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error)
- func (UnimplementedAccountsServer) GetAccounts(context.Context, *GetAccountsRequest) (*GetAccountsResponse, error)
- func (UnimplementedAccountsServer) UpdateAccount(context.Context, *UpdateAccountRequest) (*UpdateAccountResponse, error)
- type UnsafeAccountsServer
- type UpdateAccountRequest
- func (*UpdateAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAccountRequest) GetName() string
- func (x *UpdateAccountRequest) GetSettings() *account.AccountSettings
- func (*UpdateAccountRequest) ProtoMessage()
- func (x *UpdateAccountRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateAccountRequest) Reset()
- func (x *UpdateAccountRequest) String() string
- func (m *UpdateAccountRequest) Validate() error
- type UpdateAccountRequestValidationError
- func (e UpdateAccountRequestValidationError) Cause() error
- func (e UpdateAccountRequestValidationError) Error() string
- func (e UpdateAccountRequestValidationError) ErrorName() string
- func (e UpdateAccountRequestValidationError) Field() string
- func (e UpdateAccountRequestValidationError) Key() bool
- func (e UpdateAccountRequestValidationError) Reason() string
- type UpdateAccountResponse
- func (*UpdateAccountResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpdateAccountResponse) ProtoMessage()
- func (x *UpdateAccountResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateAccountResponse) Reset()
- func (x *UpdateAccountResponse) String() string
- func (m *UpdateAccountResponse) Validate() error
- type UpdateAccountResponseValidationError
- func (e UpdateAccountResponseValidationError) Cause() error
- func (e UpdateAccountResponseValidationError) Error() string
- func (e UpdateAccountResponseValidationError) ErrorName() string
- func (e UpdateAccountResponseValidationError) Field() string
- func (e UpdateAccountResponseValidationError) Key() bool
- func (e UpdateAccountResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var Accounts_ServiceDesc = grpc.ServiceDesc{ ServiceName: "autokitteh.accountsvc.Accounts", HandlerType: (*AccountsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateAccount", Handler: _Accounts_CreateAccount_Handler, }, { MethodName: "UpdateAccount", Handler: _Accounts_UpdateAccount_Handler, }, { MethodName: "GetAccount", Handler: _Accounts_GetAccount_Handler, }, { MethodName: "GetAccounts", Handler: _Accounts_GetAccounts_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "accountsvc/svc.proto", }
Accounts_ServiceDesc is the grpc.ServiceDesc for Accounts service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_accountsvc_svc_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAccountsHandler ¶
func RegisterAccountsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterAccountsHandler registers the http handlers for service Accounts to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAccountsHandlerClient ¶
func RegisterAccountsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AccountsClient) error
RegisterAccountsHandlerClient registers the http handlers for service Accounts to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AccountsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AccountsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AccountsClient" to call the correct interceptors.
func RegisterAccountsHandlerFromEndpoint ¶
func RegisterAccountsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAccountsHandlerFromEndpoint is same as RegisterAccountsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAccountsHandlerServer ¶
func RegisterAccountsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AccountsServer) error
RegisterAccountsHandlerServer registers the http handlers for service Accounts to "mux". UnaryRPC :call AccountsServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAccountsHandlerFromEndpoint instead.
func RegisterAccountsServer ¶
func RegisterAccountsServer(s grpc.ServiceRegistrar, srv AccountsServer)
Types ¶
type AccountsClient ¶
type AccountsClient interface { CreateAccount(ctx context.Context, in *CreateAccountRequest, opts ...grpc.CallOption) (*CreateAccountResponse, error) UpdateAccount(ctx context.Context, in *UpdateAccountRequest, opts ...grpc.CallOption) (*UpdateAccountResponse, error) GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error) GetAccounts(ctx context.Context, in *GetAccountsRequest, opts ...grpc.CallOption) (*GetAccountsResponse, error) }
AccountsClient is the client API for Accounts service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAccountsClient ¶
func NewAccountsClient(cc grpc.ClientConnInterface) AccountsClient
type AccountsServer ¶
type AccountsServer interface { CreateAccount(context.Context, *CreateAccountRequest) (*CreateAccountResponse, error) UpdateAccount(context.Context, *UpdateAccountRequest) (*UpdateAccountResponse, error) GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error) GetAccounts(context.Context, *GetAccountsRequest) (*GetAccountsResponse, error) // contains filtered or unexported methods }
AccountsServer is the server API for Accounts service. All implementations must embed UnimplementedAccountsServer for forward compatibility
type CreateAccountRequest ¶
type CreateAccountRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Settings *account.AccountSettings `protobuf:"bytes,2,opt,name=settings,proto3" json:"settings,omitempty"` // contains filtered or unexported fields }
func (*CreateAccountRequest) Descriptor
deprecated
func (*CreateAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateAccountRequest.ProtoReflect.Descriptor instead.
func (*CreateAccountRequest) GetName ¶
func (x *CreateAccountRequest) GetName() string
func (*CreateAccountRequest) GetSettings ¶
func (x *CreateAccountRequest) GetSettings() *account.AccountSettings
func (*CreateAccountRequest) ProtoMessage ¶
func (*CreateAccountRequest) ProtoMessage()
func (*CreateAccountRequest) ProtoReflect ¶
func (x *CreateAccountRequest) ProtoReflect() protoreflect.Message
func (*CreateAccountRequest) Reset ¶
func (x *CreateAccountRequest) Reset()
func (*CreateAccountRequest) String ¶
func (x *CreateAccountRequest) String() string
func (*CreateAccountRequest) Validate ¶
func (m *CreateAccountRequest) Validate() error
Validate checks the field values on CreateAccountRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreateAccountRequestValidationError ¶
type CreateAccountRequestValidationError struct {
// contains filtered or unexported fields
}
CreateAccountRequestValidationError is the validation error returned by CreateAccountRequest.Validate if the designated constraints aren't met.
func (CreateAccountRequestValidationError) Cause ¶
func (e CreateAccountRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateAccountRequestValidationError) Error ¶
func (e CreateAccountRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateAccountRequestValidationError) ErrorName ¶
func (e CreateAccountRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateAccountRequestValidationError) Field ¶
func (e CreateAccountRequestValidationError) Field() string
Field function returns field value.
func (CreateAccountRequestValidationError) Key ¶
func (e CreateAccountRequestValidationError) Key() bool
Key function returns key value.
func (CreateAccountRequestValidationError) Reason ¶
func (e CreateAccountRequestValidationError) Reason() string
Reason function returns reason value.
type CreateAccountResponse ¶
type CreateAccountResponse struct {
// contains filtered or unexported fields
}
func (*CreateAccountResponse) Descriptor
deprecated
func (*CreateAccountResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateAccountResponse.ProtoReflect.Descriptor instead.
func (*CreateAccountResponse) ProtoMessage ¶
func (*CreateAccountResponse) ProtoMessage()
func (*CreateAccountResponse) ProtoReflect ¶
func (x *CreateAccountResponse) ProtoReflect() protoreflect.Message
func (*CreateAccountResponse) Reset ¶
func (x *CreateAccountResponse) Reset()
func (*CreateAccountResponse) String ¶
func (x *CreateAccountResponse) String() string
func (*CreateAccountResponse) Validate ¶
func (m *CreateAccountResponse) Validate() error
Validate checks the field values on CreateAccountResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreateAccountResponseValidationError ¶
type CreateAccountResponseValidationError struct {
// contains filtered or unexported fields
}
CreateAccountResponseValidationError is the validation error returned by CreateAccountResponse.Validate if the designated constraints aren't met.
func (CreateAccountResponseValidationError) Cause ¶
func (e CreateAccountResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateAccountResponseValidationError) Error ¶
func (e CreateAccountResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateAccountResponseValidationError) ErrorName ¶
func (e CreateAccountResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateAccountResponseValidationError) Field ¶
func (e CreateAccountResponseValidationError) Field() string
Field function returns field value.
func (CreateAccountResponseValidationError) Key ¶
func (e CreateAccountResponseValidationError) Key() bool
Key function returns key value.
func (CreateAccountResponseValidationError) Reason ¶
func (e CreateAccountResponseValidationError) Reason() string
Reason function returns reason value.
type GetAccountRequest ¶
type GetAccountRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetAccountRequest) Descriptor
deprecated
func (*GetAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountRequest.ProtoReflect.Descriptor instead.
func (*GetAccountRequest) GetName ¶
func (x *GetAccountRequest) GetName() string
func (*GetAccountRequest) ProtoMessage ¶
func (*GetAccountRequest) ProtoMessage()
func (*GetAccountRequest) ProtoReflect ¶
func (x *GetAccountRequest) ProtoReflect() protoreflect.Message
func (*GetAccountRequest) Reset ¶
func (x *GetAccountRequest) Reset()
func (*GetAccountRequest) String ¶
func (x *GetAccountRequest) String() string
func (*GetAccountRequest) Validate ¶
func (m *GetAccountRequest) Validate() error
Validate checks the field values on GetAccountRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetAccountRequestValidationError ¶
type GetAccountRequestValidationError struct {
// contains filtered or unexported fields
}
GetAccountRequestValidationError is the validation error returned by GetAccountRequest.Validate if the designated constraints aren't met.
func (GetAccountRequestValidationError) Cause ¶
func (e GetAccountRequestValidationError) Cause() error
Cause function returns cause value.
func (GetAccountRequestValidationError) Error ¶
func (e GetAccountRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetAccountRequestValidationError) ErrorName ¶
func (e GetAccountRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetAccountRequestValidationError) Field ¶
func (e GetAccountRequestValidationError) Field() string
Field function returns field value.
func (GetAccountRequestValidationError) Key ¶
func (e GetAccountRequestValidationError) Key() bool
Key function returns key value.
func (GetAccountRequestValidationError) Reason ¶
func (e GetAccountRequestValidationError) Reason() string
Reason function returns reason value.
type GetAccountResponse ¶
type GetAccountResponse struct { Account *account.Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // contains filtered or unexported fields }
func (*GetAccountResponse) Descriptor
deprecated
func (*GetAccountResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountResponse.ProtoReflect.Descriptor instead.
func (*GetAccountResponse) GetAccount ¶
func (x *GetAccountResponse) GetAccount() *account.Account
func (*GetAccountResponse) ProtoMessage ¶
func (*GetAccountResponse) ProtoMessage()
func (*GetAccountResponse) ProtoReflect ¶
func (x *GetAccountResponse) ProtoReflect() protoreflect.Message
func (*GetAccountResponse) Reset ¶
func (x *GetAccountResponse) Reset()
func (*GetAccountResponse) String ¶
func (x *GetAccountResponse) String() string
func (*GetAccountResponse) Validate ¶
func (m *GetAccountResponse) Validate() error
Validate checks the field values on GetAccountResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetAccountResponseValidationError ¶
type GetAccountResponseValidationError struct {
// contains filtered or unexported fields
}
GetAccountResponseValidationError is the validation error returned by GetAccountResponse.Validate if the designated constraints aren't met.
func (GetAccountResponseValidationError) Cause ¶
func (e GetAccountResponseValidationError) Cause() error
Cause function returns cause value.
func (GetAccountResponseValidationError) Error ¶
func (e GetAccountResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetAccountResponseValidationError) ErrorName ¶
func (e GetAccountResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetAccountResponseValidationError) Field ¶
func (e GetAccountResponseValidationError) Field() string
Field function returns field value.
func (GetAccountResponseValidationError) Key ¶
func (e GetAccountResponseValidationError) Key() bool
Key function returns key value.
func (GetAccountResponseValidationError) Reason ¶
func (e GetAccountResponseValidationError) Reason() string
Reason function returns reason value.
type GetAccountsRequest ¶
type GetAccountsRequest struct { Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` // contains filtered or unexported fields }
func (*GetAccountsRequest) Descriptor
deprecated
func (*GetAccountsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountsRequest.ProtoReflect.Descriptor instead.
func (*GetAccountsRequest) GetNames ¶
func (x *GetAccountsRequest) GetNames() []string
func (*GetAccountsRequest) ProtoMessage ¶
func (*GetAccountsRequest) ProtoMessage()
func (*GetAccountsRequest) ProtoReflect ¶
func (x *GetAccountsRequest) ProtoReflect() protoreflect.Message
func (*GetAccountsRequest) Reset ¶
func (x *GetAccountsRequest) Reset()
func (*GetAccountsRequest) String ¶
func (x *GetAccountsRequest) String() string
func (*GetAccountsRequest) Validate ¶
func (m *GetAccountsRequest) Validate() error
Validate checks the field values on GetAccountsRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetAccountsRequestValidationError ¶
type GetAccountsRequestValidationError struct {
// contains filtered or unexported fields
}
GetAccountsRequestValidationError is the validation error returned by GetAccountsRequest.Validate if the designated constraints aren't met.
func (GetAccountsRequestValidationError) Cause ¶
func (e GetAccountsRequestValidationError) Cause() error
Cause function returns cause value.
func (GetAccountsRequestValidationError) Error ¶
func (e GetAccountsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetAccountsRequestValidationError) ErrorName ¶
func (e GetAccountsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetAccountsRequestValidationError) Field ¶
func (e GetAccountsRequestValidationError) Field() string
Field function returns field value.
func (GetAccountsRequestValidationError) Key ¶
func (e GetAccountsRequestValidationError) Key() bool
Key function returns key value.
func (GetAccountsRequestValidationError) Reason ¶
func (e GetAccountsRequestValidationError) Reason() string
Reason function returns reason value.
type GetAccountsResponse ¶
type GetAccountsResponse struct { Accounts []*account.Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` // contains filtered or unexported fields }
func (*GetAccountsResponse) Descriptor
deprecated
func (*GetAccountsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountsResponse.ProtoReflect.Descriptor instead.
func (*GetAccountsResponse) GetAccounts ¶
func (x *GetAccountsResponse) GetAccounts() []*account.Account
func (*GetAccountsResponse) ProtoMessage ¶
func (*GetAccountsResponse) ProtoMessage()
func (*GetAccountsResponse) ProtoReflect ¶
func (x *GetAccountsResponse) ProtoReflect() protoreflect.Message
func (*GetAccountsResponse) Reset ¶
func (x *GetAccountsResponse) Reset()
func (*GetAccountsResponse) String ¶
func (x *GetAccountsResponse) String() string
func (*GetAccountsResponse) Validate ¶
func (m *GetAccountsResponse) Validate() error
Validate checks the field values on GetAccountsResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetAccountsResponseValidationError ¶
type GetAccountsResponseValidationError struct {
// contains filtered or unexported fields
}
GetAccountsResponseValidationError is the validation error returned by GetAccountsResponse.Validate if the designated constraints aren't met.
func (GetAccountsResponseValidationError) Cause ¶
func (e GetAccountsResponseValidationError) Cause() error
Cause function returns cause value.
func (GetAccountsResponseValidationError) Error ¶
func (e GetAccountsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetAccountsResponseValidationError) ErrorName ¶
func (e GetAccountsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetAccountsResponseValidationError) Field ¶
func (e GetAccountsResponseValidationError) Field() string
Field function returns field value.
func (GetAccountsResponseValidationError) Key ¶
func (e GetAccountsResponseValidationError) Key() bool
Key function returns key value.
func (GetAccountsResponseValidationError) Reason ¶
func (e GetAccountsResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedAccountsServer ¶
type UnimplementedAccountsServer struct { }
UnimplementedAccountsServer must be embedded to have forward compatible implementations.
func (UnimplementedAccountsServer) CreateAccount ¶
func (UnimplementedAccountsServer) CreateAccount(context.Context, *CreateAccountRequest) (*CreateAccountResponse, error)
func (UnimplementedAccountsServer) GetAccount ¶
func (UnimplementedAccountsServer) GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error)
func (UnimplementedAccountsServer) GetAccounts ¶
func (UnimplementedAccountsServer) GetAccounts(context.Context, *GetAccountsRequest) (*GetAccountsResponse, error)
func (UnimplementedAccountsServer) UpdateAccount ¶
func (UnimplementedAccountsServer) UpdateAccount(context.Context, *UpdateAccountRequest) (*UpdateAccountResponse, error)
type UnsafeAccountsServer ¶
type UnsafeAccountsServer interface {
// contains filtered or unexported methods
}
UnsafeAccountsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccountsServer will result in compilation errors.
type UpdateAccountRequest ¶
type UpdateAccountRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Settings *account.AccountSettings `protobuf:"bytes,2,opt,name=settings,proto3" json:"settings,omitempty"` // contains filtered or unexported fields }
func (*UpdateAccountRequest) Descriptor
deprecated
func (*UpdateAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAccountRequest.ProtoReflect.Descriptor instead.
func (*UpdateAccountRequest) GetName ¶
func (x *UpdateAccountRequest) GetName() string
func (*UpdateAccountRequest) GetSettings ¶
func (x *UpdateAccountRequest) GetSettings() *account.AccountSettings
func (*UpdateAccountRequest) ProtoMessage ¶
func (*UpdateAccountRequest) ProtoMessage()
func (*UpdateAccountRequest) ProtoReflect ¶
func (x *UpdateAccountRequest) ProtoReflect() protoreflect.Message
func (*UpdateAccountRequest) Reset ¶
func (x *UpdateAccountRequest) Reset()
func (*UpdateAccountRequest) String ¶
func (x *UpdateAccountRequest) String() string
func (*UpdateAccountRequest) Validate ¶
func (m *UpdateAccountRequest) Validate() error
Validate checks the field values on UpdateAccountRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UpdateAccountRequestValidationError ¶
type UpdateAccountRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateAccountRequestValidationError is the validation error returned by UpdateAccountRequest.Validate if the designated constraints aren't met.
func (UpdateAccountRequestValidationError) Cause ¶
func (e UpdateAccountRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateAccountRequestValidationError) Error ¶
func (e UpdateAccountRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateAccountRequestValidationError) ErrorName ¶
func (e UpdateAccountRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateAccountRequestValidationError) Field ¶
func (e UpdateAccountRequestValidationError) Field() string
Field function returns field value.
func (UpdateAccountRequestValidationError) Key ¶
func (e UpdateAccountRequestValidationError) Key() bool
Key function returns key value.
func (UpdateAccountRequestValidationError) Reason ¶
func (e UpdateAccountRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateAccountResponse ¶
type UpdateAccountResponse struct {
// contains filtered or unexported fields
}
func (*UpdateAccountResponse) Descriptor
deprecated
func (*UpdateAccountResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAccountResponse.ProtoReflect.Descriptor instead.
func (*UpdateAccountResponse) ProtoMessage ¶
func (*UpdateAccountResponse) ProtoMessage()
func (*UpdateAccountResponse) ProtoReflect ¶
func (x *UpdateAccountResponse) ProtoReflect() protoreflect.Message
func (*UpdateAccountResponse) Reset ¶
func (x *UpdateAccountResponse) Reset()
func (*UpdateAccountResponse) String ¶
func (x *UpdateAccountResponse) String() string
func (*UpdateAccountResponse) Validate ¶
func (m *UpdateAccountResponse) Validate() error
Validate checks the field values on UpdateAccountResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UpdateAccountResponseValidationError ¶
type UpdateAccountResponseValidationError struct {
// contains filtered or unexported fields
}
UpdateAccountResponseValidationError is the validation error returned by UpdateAccountResponse.Validate if the designated constraints aren't met.
func (UpdateAccountResponseValidationError) Cause ¶
func (e UpdateAccountResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateAccountResponseValidationError) Error ¶
func (e UpdateAccountResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateAccountResponseValidationError) ErrorName ¶
func (e UpdateAccountResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateAccountResponseValidationError) Field ¶
func (e UpdateAccountResponseValidationError) Field() string
Field function returns field value.
func (UpdateAccountResponseValidationError) Key ¶
func (e UpdateAccountResponseValidationError) Key() bool
Key function returns key value.
func (UpdateAccountResponseValidationError) Reason ¶
func (e UpdateAccountResponseValidationError) Reason() string
Reason function returns reason value.