gossip_account

package
v0.0.0-...-6dc7df5 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_account_account_proto protoreflect.FileDescriptor

Functions

func NewAccountEndpoints

func NewAccountEndpoints() []*api.Endpoint

func RegisterAccountHandler

func RegisterAccountHandler(s server.Server, hdlr AccountHandler, opts ...server.HandlerOption) error

Types

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

Jump to

Keyboard shortcuts

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