Documentation ¶
Index ¶
- Variables
- func NewAccountEndpoints() []*api.Endpoint
- func RegisterAccountHandler(s server.Server, hdlr AccountHandler, opts ...server.HandlerOption) error
- type AccountHandler
- type AccountPayload
- func (*AccountPayload) Descriptor() ([]byte, []int)deprecated
- func (x *AccountPayload) GetCreatedAt() uint32
- func (x *AccountPayload) GetDeletedAt() uint32
- func (x *AccountPayload) GetId() uint32
- func (x *AccountPayload) GetPassword() string
- func (x *AccountPayload) GetUpdatedAt() uint32
- func (x *AccountPayload) GetUsername() string
- func (*AccountPayload) ProtoMessage()
- func (x *AccountPayload) ProtoReflect() protoreflect.Message
- func (x *AccountPayload) Reset()
- func (x *AccountPayload) String() string
- type AccountService
- type HealthRequest
- type HealthResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_account_account_proto protoreflect.FileDescriptor
Functions ¶
func NewAccountEndpoints ¶
func RegisterAccountHandler ¶
func RegisterAccountHandler(s server.Server, hdlr AccountHandler, opts ...server.HandlerOption) error
Types ¶
type AccountHandler ¶
type AccountHandler interface { // TODO: check if micro has an internal health check Health(context.Context, *HealthRequest, *HealthResponse) error Create(context.Context, *AccountPayload, *AccountPayload) error Read(context.Context, *AccountPayload, *AccountPayload) error Update(context.Context, *AccountPayload, *AccountPayload) error Delete(context.Context, *AccountPayload, *AccountPayload) error SignIn(context.Context, *AccountPayload, *AccountPayload) error SignUp(context.Context, *AccountPayload, *AccountPayload) error SignOut(context.Context, *AccountPayload, *AccountPayload) error }
type AccountPayload ¶
type AccountPayload struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` CreatedAt uint32 `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt uint32 `protobuf:"varint,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` DeletedAt uint32 `protobuf:"varint,6,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` // contains filtered or unexported fields }
func (*AccountPayload) Descriptor
deprecated
func (*AccountPayload) Descriptor() ([]byte, []int)
Deprecated: Use AccountPayload.ProtoReflect.Descriptor instead.
func (*AccountPayload) GetCreatedAt ¶
func (x *AccountPayload) GetCreatedAt() uint32
func (*AccountPayload) GetDeletedAt ¶
func (x *AccountPayload) GetDeletedAt() uint32
func (*AccountPayload) GetId ¶
func (x *AccountPayload) GetId() uint32
func (*AccountPayload) GetPassword ¶
func (x *AccountPayload) GetPassword() string
func (*AccountPayload) GetUpdatedAt ¶
func (x *AccountPayload) GetUpdatedAt() uint32
func (*AccountPayload) GetUsername ¶
func (x *AccountPayload) GetUsername() string
func (*AccountPayload) ProtoMessage ¶
func (*AccountPayload) ProtoMessage()
func (*AccountPayload) ProtoReflect ¶
func (x *AccountPayload) ProtoReflect() protoreflect.Message
func (*AccountPayload) Reset ¶
func (x *AccountPayload) Reset()
func (*AccountPayload) String ¶
func (x *AccountPayload) String() string
type AccountService ¶
type AccountService interface { // TODO: check if micro has an internal health check Health(ctx context.Context, in *HealthRequest, opts ...client.CallOption) (*HealthResponse, error) Create(ctx context.Context, in *AccountPayload, opts ...client.CallOption) (*AccountPayload, error) Read(ctx context.Context, in *AccountPayload, opts ...client.CallOption) (*AccountPayload, error) Update(ctx context.Context, in *AccountPayload, opts ...client.CallOption) (*AccountPayload, error) Delete(ctx context.Context, in *AccountPayload, opts ...client.CallOption) (*AccountPayload, error) SignIn(ctx context.Context, in *AccountPayload, opts ...client.CallOption) (*AccountPayload, error) SignUp(ctx context.Context, in *AccountPayload, opts ...client.CallOption) (*AccountPayload, error) SignOut(ctx context.Context, in *AccountPayload, opts ...client.CallOption) (*AccountPayload, error) }
func NewAccountService ¶
func NewAccountService(name string, c client.Client) AccountService
type HealthRequest ¶
type HealthRequest struct {
// contains filtered or unexported fields
}
func (*HealthRequest) Descriptor
deprecated
func (*HealthRequest) Descriptor() ([]byte, []int)
Deprecated: Use HealthRequest.ProtoReflect.Descriptor instead.
func (*HealthRequest) ProtoMessage ¶
func (*HealthRequest) ProtoMessage()
func (*HealthRequest) ProtoReflect ¶
func (x *HealthRequest) ProtoReflect() protoreflect.Message
func (*HealthRequest) Reset ¶
func (x *HealthRequest) Reset()
func (*HealthRequest) String ¶
func (x *HealthRequest) String() string
type HealthResponse ¶
type HealthResponse struct {
// contains filtered or unexported fields
}
func (*HealthResponse) Descriptor
deprecated
func (*HealthResponse) Descriptor() ([]byte, []int)
Deprecated: Use HealthResponse.ProtoReflect.Descriptor instead.
func (*HealthResponse) ProtoMessage ¶
func (*HealthResponse) ProtoMessage()
func (*HealthResponse) ProtoReflect ¶
func (x *HealthResponse) ProtoReflect() protoreflect.Message
func (*HealthResponse) Reset ¶
func (x *HealthResponse) Reset()
func (*HealthResponse) String ¶
func (x *HealthResponse) String() string
Click to show internal directories.
Click to hide internal directories.