Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAccountLogSvcServer(s grpc.ServiceRegistrar, srv AccountLogSvcServer)
- func RegisterAccountSvcServer(s grpc.ServiceRegistrar, srv AccountSvcServer)
- type Account
- func (*Account) Descriptor() ([]byte, []int)deprecated
- func (x *Account) GetAccount() string
- func (x *Account) GetCreatedAt() int64
- func (x *Account) GetId() int64
- func (x *Account) GetPassword() string
- func (x *Account) GetStatus() int64
- func (x *Account) GetUpdatedAt() int64
- func (*Account) ProtoMessage()
- func (x *Account) ProtoReflect() protoreflect.Message
- func (x *Account) Reset()
- func (x *Account) String() string
- type AccountLog
- func (*AccountLog) Descriptor() ([]byte, []int)deprecated
- func (x *AccountLog) GetAccountId() int64
- func (x *AccountLog) GetCreatedAt() int64
- func (x *AccountLog) GetDevice() string
- func (x *AccountLog) GetId() int64
- func (x *AccountLog) GetIpAddr() string
- func (*AccountLog) ProtoMessage()
- func (x *AccountLog) ProtoReflect() protoreflect.Message
- func (x *AccountLog) Reset()
- func (x *AccountLog) String() string
- type AccountLogListReq
- type AccountLogListResp
- func (*AccountLogListResp) Descriptor() ([]byte, []int)deprecated
- func (x *AccountLogListResp) GetList() []*AccountLog
- func (*AccountLogListResp) ProtoMessage()
- func (x *AccountLogListResp) ProtoReflect() protoreflect.Message
- func (x *AccountLogListResp) Reset()
- func (x *AccountLogListResp) String() string
- type AccountLogSvcClient
- type AccountLogSvcServer
- type AccountSvcClient
- type AccountSvcServer
- type CreateReq
- type CreateResp
- type DeleteReq
- type DeleteResp
- type GetByAccountReq
- type GetByAccountResp
- type GetByIdReq
- type GetByIdResp
- type InsertLogReq
- type InsertLogResp
- type UnimplementedAccountLogSvcServer
- type UnimplementedAccountSvcServer
- func (UnimplementedAccountSvcServer) Create(context.Context, *CreateReq) (*CreateResp, error)
- func (UnimplementedAccountSvcServer) Delete(context.Context, *DeleteReq) (*DeleteResp, error)
- func (UnimplementedAccountSvcServer) GetByAccount(context.Context, *GetByAccountReq) (*GetByAccountResp, error)
- func (UnimplementedAccountSvcServer) GetById(context.Context, *GetByIdReq) (*GetByIdResp, error)
- func (UnimplementedAccountSvcServer) Update(context.Context, *UpdateReq) (*UpdateResp, error)
- type UnsafeAccountLogSvcServer
- type UnsafeAccountSvcServer
- type UpdateReq
- type UpdateResp
Constants ¶
const ( AccountSvc_GetByAccount_FullMethodName = "/accountsvc.AccountSvc/GetByAccount" AccountSvc_GetById_FullMethodName = "/accountsvc.AccountSvc/GetById" AccountSvc_Create_FullMethodName = "/accountsvc.AccountSvc/Create" AccountSvc_Update_FullMethodName = "/accountsvc.AccountSvc/Update" AccountSvc_Delete_FullMethodName = "/accountsvc.AccountSvc/Delete" )
const ( AccountLogSvc_InsertLog_FullMethodName = "/accountsvc.AccountLogSvc/InsertLog" AccountLogSvc_AccountLogList_FullMethodName = "/accountsvc.AccountLogSvc/AccountLogList" )
Variables ¶
var AccountLogSvc_ServiceDesc = grpc.ServiceDesc{ ServiceName: "accountsvc.AccountLogSvc", HandlerType: (*AccountLogSvcServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "InsertLog", Handler: _AccountLogSvc_InsertLog_Handler, }, { MethodName: "AccountLogList", Handler: _AccountLogSvc_AccountLogList_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "accountsvc.proto", }
AccountLogSvc_ServiceDesc is the grpc.ServiceDesc for AccountLogSvc service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var AccountSvc_ServiceDesc = grpc.ServiceDesc{ ServiceName: "accountsvc.AccountSvc", HandlerType: (*AccountSvcServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetByAccount", Handler: _AccountSvc_GetByAccount_Handler, }, { MethodName: "GetById", Handler: _AccountSvc_GetById_Handler, }, { MethodName: "Create", Handler: _AccountSvc_Create_Handler, }, { MethodName: "Update", Handler: _AccountSvc_Update_Handler, }, { MethodName: "Delete", Handler: _AccountSvc_Delete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "accountsvc.proto", }
AccountSvc_ServiceDesc is the grpc.ServiceDesc for AccountSvc 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_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAccountLogSvcServer ¶
func RegisterAccountLogSvcServer(s grpc.ServiceRegistrar, srv AccountLogSvcServer)
func RegisterAccountSvcServer ¶
func RegisterAccountSvcServer(s grpc.ServiceRegistrar, srv AccountSvcServer)
Types ¶
type Account ¶
type Account struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` Status int64 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` CreatedAt int64 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt int64 `protobuf:"varint,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*Account) Descriptor
deprecated
func (*Account) GetAccount ¶
func (*Account) GetCreatedAt ¶
func (*Account) GetPassword ¶
func (*Account) GetUpdatedAt ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) ProtoReflect ¶
func (x *Account) ProtoReflect() protoreflect.Message
type AccountLog ¶
type AccountLog struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` AccountId int64 `protobuf:"varint,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` CreatedAt int64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` IpAddr string `protobuf:"bytes,4,opt,name=ip_addr,json=ipAddr,proto3" json:"ip_addr,omitempty"` Device string `protobuf:"bytes,5,opt,name=device,proto3" json:"device,omitempty"` // contains filtered or unexported fields }
func (*AccountLog) Descriptor
deprecated
func (*AccountLog) Descriptor() ([]byte, []int)
Deprecated: Use AccountLog.ProtoReflect.Descriptor instead.
func (*AccountLog) GetAccountId ¶
func (x *AccountLog) GetAccountId() int64
func (*AccountLog) GetCreatedAt ¶
func (x *AccountLog) GetCreatedAt() int64
func (*AccountLog) GetDevice ¶
func (x *AccountLog) GetDevice() string
func (*AccountLog) GetId ¶
func (x *AccountLog) GetId() int64
func (*AccountLog) GetIpAddr ¶
func (x *AccountLog) GetIpAddr() string
func (*AccountLog) ProtoMessage ¶
func (*AccountLog) ProtoMessage()
func (*AccountLog) ProtoReflect ¶
func (x *AccountLog) ProtoReflect() protoreflect.Message
func (*AccountLog) Reset ¶
func (x *AccountLog) Reset()
func (*AccountLog) String ¶
func (x *AccountLog) String() string
type AccountLogListReq ¶
type AccountLogListReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*AccountLogListReq) Descriptor
deprecated
func (*AccountLogListReq) Descriptor() ([]byte, []int)
Deprecated: Use AccountLogListReq.ProtoReflect.Descriptor instead.
func (*AccountLogListReq) GetId ¶
func (x *AccountLogListReq) GetId() int64
func (*AccountLogListReq) ProtoMessage ¶
func (*AccountLogListReq) ProtoMessage()
func (*AccountLogListReq) ProtoReflect ¶
func (x *AccountLogListReq) ProtoReflect() protoreflect.Message
func (*AccountLogListReq) Reset ¶
func (x *AccountLogListReq) Reset()
func (*AccountLogListReq) String ¶
func (x *AccountLogListReq) String() string
type AccountLogListResp ¶
type AccountLogListResp struct { List []*AccountLog `protobuf:"bytes,1,rep,name=List,proto3" json:"List,omitempty"` // contains filtered or unexported fields }
func (*AccountLogListResp) Descriptor
deprecated
func (*AccountLogListResp) Descriptor() ([]byte, []int)
Deprecated: Use AccountLogListResp.ProtoReflect.Descriptor instead.
func (*AccountLogListResp) GetList ¶
func (x *AccountLogListResp) GetList() []*AccountLog
func (*AccountLogListResp) ProtoMessage ¶
func (*AccountLogListResp) ProtoMessage()
func (*AccountLogListResp) ProtoReflect ¶
func (x *AccountLogListResp) ProtoReflect() protoreflect.Message
func (*AccountLogListResp) Reset ¶
func (x *AccountLogListResp) Reset()
func (*AccountLogListResp) String ¶
func (x *AccountLogListResp) String() string
type AccountLogSvcClient ¶
type AccountLogSvcClient interface { InsertLog(ctx context.Context, in *InsertLogReq, opts ...grpc.CallOption) (*InsertLogResp, error) AccountLogList(ctx context.Context, in *AccountLogListReq, opts ...grpc.CallOption) (*AccountLogListResp, error) }
AccountLogSvcClient is the client API for AccountLogSvc 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 NewAccountLogSvcClient ¶
func NewAccountLogSvcClient(cc grpc.ClientConnInterface) AccountLogSvcClient
type AccountLogSvcServer ¶
type AccountLogSvcServer interface { InsertLog(context.Context, *InsertLogReq) (*InsertLogResp, error) AccountLogList(context.Context, *AccountLogListReq) (*AccountLogListResp, error) // contains filtered or unexported methods }
AccountLogSvcServer is the server API for AccountLogSvc service. All implementations must embed UnimplementedAccountLogSvcServer for forward compatibility
type AccountSvcClient ¶
type AccountSvcClient interface { GetByAccount(ctx context.Context, in *GetByAccountReq, opts ...grpc.CallOption) (*GetByAccountResp, error) GetById(ctx context.Context, in *GetByIdReq, opts ...grpc.CallOption) (*GetByIdResp, error) Create(ctx context.Context, in *CreateReq, opts ...grpc.CallOption) (*CreateResp, error) Update(ctx context.Context, in *UpdateReq, opts ...grpc.CallOption) (*UpdateResp, error) Delete(ctx context.Context, in *DeleteReq, opts ...grpc.CallOption) (*DeleteResp, error) }
AccountSvcClient is the client API for AccountSvc 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 NewAccountSvcClient ¶
func NewAccountSvcClient(cc grpc.ClientConnInterface) AccountSvcClient
type AccountSvcServer ¶
type AccountSvcServer interface { GetByAccount(context.Context, *GetByAccountReq) (*GetByAccountResp, error) GetById(context.Context, *GetByIdReq) (*GetByIdResp, error) Create(context.Context, *CreateReq) (*CreateResp, error) Update(context.Context, *UpdateReq) (*UpdateResp, error) Delete(context.Context, *DeleteReq) (*DeleteResp, error) // contains filtered or unexported methods }
AccountSvcServer is the server API for AccountSvc service. All implementations must embed UnimplementedAccountSvcServer for forward compatibility
type CreateReq ¶
type CreateReq struct { Data *Account `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*CreateReq) Descriptor
deprecated
func (*CreateReq) ProtoMessage ¶
func (*CreateReq) ProtoMessage()
func (*CreateReq) ProtoReflect ¶
func (x *CreateReq) ProtoReflect() protoreflect.Message
type CreateResp ¶
type CreateResp struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateResp) Descriptor
deprecated
func (*CreateResp) Descriptor() ([]byte, []int)
Deprecated: Use CreateResp.ProtoReflect.Descriptor instead.
func (*CreateResp) GetId ¶
func (x *CreateResp) GetId() int64
func (*CreateResp) ProtoMessage ¶
func (*CreateResp) ProtoMessage()
func (*CreateResp) ProtoReflect ¶
func (x *CreateResp) ProtoReflect() protoreflect.Message
func (*CreateResp) Reset ¶
func (x *CreateResp) Reset()
func (*CreateResp) String ¶
func (x *CreateResp) String() string
type DeleteReq ¶
type DeleteReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteReq) Descriptor
deprecated
func (*DeleteReq) ProtoMessage ¶
func (*DeleteReq) ProtoMessage()
func (*DeleteReq) ProtoReflect ¶
func (x *DeleteReq) ProtoReflect() protoreflect.Message
type DeleteResp ¶
type DeleteResp struct { Err string `protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"` // contains filtered or unexported fields }
func (*DeleteResp) Descriptor
deprecated
func (*DeleteResp) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResp.ProtoReflect.Descriptor instead.
func (*DeleteResp) GetErr ¶
func (x *DeleteResp) GetErr() string
func (*DeleteResp) ProtoMessage ¶
func (*DeleteResp) ProtoMessage()
func (*DeleteResp) ProtoReflect ¶
func (x *DeleteResp) ProtoReflect() protoreflect.Message
func (*DeleteResp) Reset ¶
func (x *DeleteResp) Reset()
func (*DeleteResp) String ¶
func (x *DeleteResp) String() string
type GetByAccountReq ¶
type GetByAccountReq struct { Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // contains filtered or unexported fields }
func (*GetByAccountReq) Descriptor
deprecated
func (*GetByAccountReq) Descriptor() ([]byte, []int)
Deprecated: Use GetByAccountReq.ProtoReflect.Descriptor instead.
func (*GetByAccountReq) GetAccount ¶
func (x *GetByAccountReq) GetAccount() string
func (*GetByAccountReq) ProtoMessage ¶
func (*GetByAccountReq) ProtoMessage()
func (*GetByAccountReq) ProtoReflect ¶
func (x *GetByAccountReq) ProtoReflect() protoreflect.Message
func (*GetByAccountReq) Reset ¶
func (x *GetByAccountReq) Reset()
func (*GetByAccountReq) String ¶
func (x *GetByAccountReq) String() string
type GetByAccountResp ¶
type GetByAccountResp struct { Data *Account `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetByAccountResp) Descriptor
deprecated
func (*GetByAccountResp) Descriptor() ([]byte, []int)
Deprecated: Use GetByAccountResp.ProtoReflect.Descriptor instead.
func (*GetByAccountResp) GetData ¶
func (x *GetByAccountResp) GetData() *Account
func (*GetByAccountResp) ProtoMessage ¶
func (*GetByAccountResp) ProtoMessage()
func (*GetByAccountResp) ProtoReflect ¶
func (x *GetByAccountResp) ProtoReflect() protoreflect.Message
func (*GetByAccountResp) Reset ¶
func (x *GetByAccountResp) Reset()
func (*GetByAccountResp) String ¶
func (x *GetByAccountResp) String() string
type GetByIdReq ¶
type GetByIdReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetByIdReq) Descriptor
deprecated
func (*GetByIdReq) Descriptor() ([]byte, []int)
Deprecated: Use GetByIdReq.ProtoReflect.Descriptor instead.
func (*GetByIdReq) GetId ¶
func (x *GetByIdReq) GetId() int64
func (*GetByIdReq) ProtoMessage ¶
func (*GetByIdReq) ProtoMessage()
func (*GetByIdReq) ProtoReflect ¶
func (x *GetByIdReq) ProtoReflect() protoreflect.Message
func (*GetByIdReq) Reset ¶
func (x *GetByIdReq) Reset()
func (*GetByIdReq) String ¶
func (x *GetByIdReq) String() string
type GetByIdResp ¶
type GetByIdResp struct { Data *Account `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetByIdResp) Descriptor
deprecated
func (*GetByIdResp) Descriptor() ([]byte, []int)
Deprecated: Use GetByIdResp.ProtoReflect.Descriptor instead.
func (*GetByIdResp) GetData ¶
func (x *GetByIdResp) GetData() *Account
func (*GetByIdResp) ProtoMessage ¶
func (*GetByIdResp) ProtoMessage()
func (*GetByIdResp) ProtoReflect ¶
func (x *GetByIdResp) ProtoReflect() protoreflect.Message
func (*GetByIdResp) Reset ¶
func (x *GetByIdResp) Reset()
func (*GetByIdResp) String ¶
func (x *GetByIdResp) String() string
type InsertLogReq ¶
type InsertLogReq struct { Data *AccountLog `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*InsertLogReq) Descriptor
deprecated
func (*InsertLogReq) Descriptor() ([]byte, []int)
Deprecated: Use InsertLogReq.ProtoReflect.Descriptor instead.
func (*InsertLogReq) GetData ¶
func (x *InsertLogReq) GetData() *AccountLog
func (*InsertLogReq) ProtoMessage ¶
func (*InsertLogReq) ProtoMessage()
func (*InsertLogReq) ProtoReflect ¶
func (x *InsertLogReq) ProtoReflect() protoreflect.Message
func (*InsertLogReq) Reset ¶
func (x *InsertLogReq) Reset()
func (*InsertLogReq) String ¶
func (x *InsertLogReq) String() string
type InsertLogResp ¶
type InsertLogResp struct { Err string `protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"` // contains filtered or unexported fields }
func (*InsertLogResp) Descriptor
deprecated
func (*InsertLogResp) Descriptor() ([]byte, []int)
Deprecated: Use InsertLogResp.ProtoReflect.Descriptor instead.
func (*InsertLogResp) GetErr ¶
func (x *InsertLogResp) GetErr() string
func (*InsertLogResp) ProtoMessage ¶
func (*InsertLogResp) ProtoMessage()
func (*InsertLogResp) ProtoReflect ¶
func (x *InsertLogResp) ProtoReflect() protoreflect.Message
func (*InsertLogResp) Reset ¶
func (x *InsertLogResp) Reset()
func (*InsertLogResp) String ¶
func (x *InsertLogResp) String() string
type UnimplementedAccountLogSvcServer ¶
type UnimplementedAccountLogSvcServer struct { }
UnimplementedAccountLogSvcServer must be embedded to have forward compatible implementations.
func (UnimplementedAccountLogSvcServer) AccountLogList ¶
func (UnimplementedAccountLogSvcServer) AccountLogList(context.Context, *AccountLogListReq) (*AccountLogListResp, error)
func (UnimplementedAccountLogSvcServer) InsertLog ¶
func (UnimplementedAccountLogSvcServer) InsertLog(context.Context, *InsertLogReq) (*InsertLogResp, error)
type UnimplementedAccountSvcServer ¶
type UnimplementedAccountSvcServer struct { }
UnimplementedAccountSvcServer must be embedded to have forward compatible implementations.
func (UnimplementedAccountSvcServer) Create ¶
func (UnimplementedAccountSvcServer) Create(context.Context, *CreateReq) (*CreateResp, error)
func (UnimplementedAccountSvcServer) Delete ¶
func (UnimplementedAccountSvcServer) Delete(context.Context, *DeleteReq) (*DeleteResp, error)
func (UnimplementedAccountSvcServer) GetByAccount ¶
func (UnimplementedAccountSvcServer) GetByAccount(context.Context, *GetByAccountReq) (*GetByAccountResp, error)
func (UnimplementedAccountSvcServer) GetById ¶
func (UnimplementedAccountSvcServer) GetById(context.Context, *GetByIdReq) (*GetByIdResp, error)
func (UnimplementedAccountSvcServer) Update ¶
func (UnimplementedAccountSvcServer) Update(context.Context, *UpdateReq) (*UpdateResp, error)
type UnsafeAccountLogSvcServer ¶
type UnsafeAccountLogSvcServer interface {
// contains filtered or unexported methods
}
UnsafeAccountLogSvcServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccountLogSvcServer will result in compilation errors.
type UnsafeAccountSvcServer ¶
type UnsafeAccountSvcServer interface {
// contains filtered or unexported methods
}
UnsafeAccountSvcServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccountSvcServer will result in compilation errors.
type UpdateReq ¶
type UpdateReq struct { Data *Account `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*UpdateReq) Descriptor
deprecated
func (*UpdateReq) ProtoMessage ¶
func (*UpdateReq) ProtoMessage()
func (*UpdateReq) ProtoReflect ¶
func (x *UpdateReq) ProtoReflect() protoreflect.Message
type UpdateResp ¶
type UpdateResp struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*UpdateResp) Descriptor
deprecated
func (*UpdateResp) Descriptor() ([]byte, []int)
Deprecated: Use UpdateResp.ProtoReflect.Descriptor instead.
func (*UpdateResp) GetId ¶
func (x *UpdateResp) GetId() int64
func (*UpdateResp) ProtoMessage ¶
func (*UpdateResp) ProtoMessage()
func (*UpdateResp) ProtoReflect ¶
func (x *UpdateResp) ProtoReflect() protoreflect.Message
func (*UpdateResp) Reset ¶
func (x *UpdateResp) Reset()
func (*UpdateResp) String ¶
func (x *UpdateResp) String() string