accountsvc

package
v0.0.0-...-2d9c92e Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const (
	AccountLogSvc_InsertLog_FullMethodName      = "/accountsvc.AccountLogSvc/InsertLog"
	AccountLogSvc_AccountLogList_FullMethodName = "/accountsvc.AccountLogSvc/AccountLogList"
)

Variables

View Source
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)

View Source
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)

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetAccount

func (x *Account) GetAccount() string

func (*Account) GetCreatedAt

func (x *Account) GetCreatedAt() int64

func (*Account) GetId

func (x *Account) GetId() int64

func (*Account) GetPassword

func (x *Account) GetPassword() string

func (*Account) GetStatus

func (x *Account) GetStatus() int64

func (*Account) GetUpdatedAt

func (x *Account) GetUpdatedAt() int64

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

func (x *Account) ProtoReflect() protoreflect.Message

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use CreateReq.ProtoReflect.Descriptor instead.

func (*CreateReq) GetData

func (x *CreateReq) GetData() *Account

func (*CreateReq) ProtoMessage

func (*CreateReq) ProtoMessage()

func (*CreateReq) ProtoReflect

func (x *CreateReq) ProtoReflect() protoreflect.Message

func (*CreateReq) Reset

func (x *CreateReq) Reset()

func (*CreateReq) String

func (x *CreateReq) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use DeleteReq.ProtoReflect.Descriptor instead.

func (*DeleteReq) GetId

func (x *DeleteReq) GetId() int64

func (*DeleteReq) ProtoMessage

func (*DeleteReq) ProtoMessage()

func (*DeleteReq) ProtoReflect

func (x *DeleteReq) ProtoReflect() protoreflect.Message

func (*DeleteReq) Reset

func (x *DeleteReq) Reset()

func (*DeleteReq) String

func (x *DeleteReq) String() string

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) InsertLog

type UnimplementedAccountSvcServer

type UnimplementedAccountSvcServer struct {
}

UnimplementedAccountSvcServer must be embedded to have forward compatible implementations.

func (UnimplementedAccountSvcServer) Create

func (UnimplementedAccountSvcServer) Delete

func (UnimplementedAccountSvcServer) GetByAccount

func (UnimplementedAccountSvcServer) GetById

func (UnimplementedAccountSvcServer) Update

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) Descriptor() ([]byte, []int)

Deprecated: Use UpdateReq.ProtoReflect.Descriptor instead.

func (*UpdateReq) GetData

func (x *UpdateReq) GetData() *Account

func (*UpdateReq) ProtoMessage

func (*UpdateReq) ProtoMessage()

func (*UpdateReq) ProtoReflect

func (x *UpdateReq) ProtoReflect() protoreflect.Message

func (*UpdateReq) Reset

func (x *UpdateReq) Reset()

func (*UpdateReq) String

func (x *UpdateReq) String() string

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

Jump to

Keyboard shortcuts

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