pb

package
v0.0.0-...-b942761 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogService_ListLog_FullMethodName   = "/log.v1.LogService/ListLog"
	LogService_CreateLog_FullMethodName = "/log.v1.LogService/CreateLog"
	LogService_UpdateLog_FullMethodName = "/log.v1.LogService/UpdateLog"
	LogService_DeleteLog_FullMethodName = "/log.v1.LogService/DeleteLog"
)

Variables

View Source
var LogService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "log.v1.LogService",
	HandlerType: (*LogServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListLog",
			Handler:    _LogService_ListLog_Handler,
		},
		{
			MethodName: "CreateLog",
			Handler:    _LogService_CreateLog_Handler,
		},
		{
			MethodName: "UpdateLog",
			Handler:    _LogService_UpdateLog_Handler,
		},
		{
			MethodName: "DeleteLog",
			Handler:    _LogService_DeleteLog_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "log.proto",
}

LogService_ServiceDesc is the grpc.ServiceDesc for LogService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterLogServiceServer

func RegisterLogServiceServer(s grpc.ServiceRegistrar, srv LogServiceServer)

Types

type DeleteIds

type DeleteIds struct {
	Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteIds) Descriptor deprecated

func (*DeleteIds) Descriptor() ([]byte, []int)

Deprecated: Use DeleteIds.ProtoReflect.Descriptor instead.

func (*DeleteIds) GetIds

func (x *DeleteIds) GetIds() []int64

func (*DeleteIds) ProtoMessage

func (*DeleteIds) ProtoMessage()

func (*DeleteIds) ProtoReflect

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

func (*DeleteIds) Reset

func (x *DeleteIds) Reset()

func (*DeleteIds) String

func (x *DeleteIds) String() string

type Log

type Log struct {
	Id      int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId  int64  `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"`
	Service string `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty"`
	Type    string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*Log) Descriptor deprecated

func (*Log) Descriptor() ([]byte, []int)

Deprecated: Use Log.ProtoReflect.Descriptor instead.

func (*Log) GetContent

func (x *Log) GetContent() string

func (*Log) GetId

func (x *Log) GetId() int64

func (*Log) GetService

func (x *Log) GetService() string

func (*Log) GetType

func (x *Log) GetType() string

func (*Log) GetUserId

func (x *Log) GetUserId() int64

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) ProtoReflect

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

func (*Log) Reset

func (x *Log) Reset()

func (*Log) String

func (x *Log) String() string

type LogServiceClient

type LogServiceClient interface {
	ListLog(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryLogResp, error)
	CreateLog(ctx context.Context, in *Log, opts ...grpc.CallOption) (*RetInfo, error)
	UpdateLog(ctx context.Context, in *Log, opts ...grpc.CallOption) (*RetInfo, error)
	DeleteLog(ctx context.Context, in *DeleteIds, opts ...grpc.CallOption) (*RetInfo, error)
}

LogServiceClient is the client API for LogService 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 NewLogServiceClient

func NewLogServiceClient(cc grpc.ClientConnInterface) LogServiceClient

type LogServiceServer

type LogServiceServer interface {
	ListLog(context.Context, *QueryRequest) (*QueryLogResp, error)
	CreateLog(context.Context, *Log) (*RetInfo, error)
	UpdateLog(context.Context, *Log) (*RetInfo, error)
	DeleteLog(context.Context, *DeleteIds) (*RetInfo, error)
	// contains filtered or unexported methods
}

LogServiceServer is the server API for LogService service. All implementations must embed UnimplementedLogServiceServer for forward compatibility

type QueryLogResp

type QueryLogResp struct {
	Ret   *RetInfo `protobuf:"bytes,1,opt,name=ret,proto3" json:"ret,omitempty"`
	Data  []*Log   `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
	Total int64    `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryLogResp) Descriptor deprecated

func (*QueryLogResp) Descriptor() ([]byte, []int)

Deprecated: Use QueryLogResp.ProtoReflect.Descriptor instead.

func (*QueryLogResp) GetData

func (x *QueryLogResp) GetData() []*Log

func (*QueryLogResp) GetRet

func (x *QueryLogResp) GetRet() *RetInfo

func (*QueryLogResp) GetTotal

func (x *QueryLogResp) GetTotal() int64

func (*QueryLogResp) ProtoMessage

func (*QueryLogResp) ProtoMessage()

func (*QueryLogResp) ProtoReflect

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

func (*QueryLogResp) Reset

func (x *QueryLogResp) Reset()

func (*QueryLogResp) String

func (x *QueryLogResp) String() string

type QueryRequest

type QueryRequest struct {
	Q     string `protobuf:"bytes,1,opt,name=q,proto3" json:"q,omitempty"`
	Page  int64  `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
	Size  int64  `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	Order string `protobuf:"bytes,4,opt,name=order,proto3" json:"order,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryRequest) Descriptor deprecated

func (*QueryRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryRequest.ProtoReflect.Descriptor instead.

func (*QueryRequest) GetOrder

func (x *QueryRequest) GetOrder() string

func (*QueryRequest) GetPage

func (x *QueryRequest) GetPage() int64

func (*QueryRequest) GetQ

func (x *QueryRequest) GetQ() string

func (*QueryRequest) GetSize

func (x *QueryRequest) GetSize() int64

func (*QueryRequest) ProtoMessage

func (*QueryRequest) ProtoMessage()

func (*QueryRequest) ProtoReflect

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

func (*QueryRequest) Reset

func (x *QueryRequest) Reset()

func (*QueryRequest) String

func (x *QueryRequest) String() string

type RetInfo

type RetInfo struct {
	Status bool   `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	Msg    string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*RetInfo) Descriptor deprecated

func (*RetInfo) Descriptor() ([]byte, []int)

Deprecated: Use RetInfo.ProtoReflect.Descriptor instead.

func (*RetInfo) GetMsg

func (x *RetInfo) GetMsg() string

func (*RetInfo) GetStatus

func (x *RetInfo) GetStatus() bool

func (*RetInfo) ProtoMessage

func (*RetInfo) ProtoMessage()

func (*RetInfo) ProtoReflect

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

func (*RetInfo) Reset

func (x *RetInfo) Reset()

func (*RetInfo) String

func (x *RetInfo) String() string

type UnimplementedLogServiceServer

type UnimplementedLogServiceServer struct {
}

UnimplementedLogServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedLogServiceServer) CreateLog

func (UnimplementedLogServiceServer) DeleteLog

func (UnimplementedLogServiceServer) ListLog

func (UnimplementedLogServiceServer) UpdateLog

type UnsafeLogServiceServer

type UnsafeLogServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeLogServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LogServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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