syslogrpc

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

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SyslogRpc_AddOperationLog_FullMethodName      = "/syslogrpc.SyslogRpc/AddOperationLog"
	SyslogRpc_DeleteOperationLog_FullMethodName   = "/syslogrpc.SyslogRpc/DeleteOperationLog"
	SyslogRpc_FindOperationLogList_FullMethodName = "/syslogrpc.SyslogRpc/FindOperationLogList"
)

Variables

View Source
var File_syslog_proto protoreflect.FileDescriptor
View Source
var SyslogRpc_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "syslogrpc.SyslogRpc",
	HandlerType: (*SyslogRpcServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddOperationLog",
			Handler:    _SyslogRpc_AddOperationLog_Handler,
		},
		{
			MethodName: "DeleteOperationLog",
			Handler:    _SyslogRpc_DeleteOperationLog_Handler,
		},
		{
			MethodName: "FindOperationLogList",
			Handler:    _SyslogRpc_FindOperationLogList_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "syslog.proto",
}

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

Functions

func RegisterSyslogRpcServer

func RegisterSyslogRpcServer(s grpc.ServiceRegistrar, srv SyslogRpcServer)

Types

type BatchResp

type BatchResp struct {
	SuccessCount int64 `protobuf:"varint,1,opt,name=success_count,json=successCount,proto3" json:"success_count,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchResp) Descriptor deprecated

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

Deprecated: Use BatchResp.ProtoReflect.Descriptor instead.

func (*BatchResp) GetSuccessCount

func (x *BatchResp) GetSuccessCount() int64

func (*BatchResp) ProtoMessage

func (*BatchResp) ProtoMessage()

func (*BatchResp) ProtoReflect

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

func (*BatchResp) Reset

func (x *BatchResp) Reset()

func (*BatchResp) String

func (x *BatchResp) String() string

type CountResp

type CountResp struct {
	Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*CountResp) Descriptor deprecated

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

Deprecated: Use CountResp.ProtoReflect.Descriptor instead.

func (*CountResp) GetCount

func (x *CountResp) GetCount() int64

func (*CountResp) ProtoMessage

func (*CountResp) ProtoMessage()

func (*CountResp) ProtoReflect

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

func (*CountResp) Reset

func (x *CountResp) Reset()

func (*CountResp) String

func (x *CountResp) String() string

type EmptyReq

type EmptyReq struct {
	// contains filtered or unexported fields
}

func (*EmptyReq) Descriptor deprecated

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

Deprecated: Use EmptyReq.ProtoReflect.Descriptor instead.

func (*EmptyReq) ProtoMessage

func (*EmptyReq) ProtoMessage()

func (*EmptyReq) ProtoReflect

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

func (*EmptyReq) Reset

func (x *EmptyReq) Reset()

func (*EmptyReq) String

func (x *EmptyReq) String() string

type EmptyResp

type EmptyResp struct {
	// contains filtered or unexported fields
}

func (*EmptyResp) Descriptor deprecated

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

Deprecated: Use EmptyResp.ProtoReflect.Descriptor instead.

func (*EmptyResp) ProtoMessage

func (*EmptyResp) ProtoMessage()

func (*EmptyResp) ProtoReflect

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

func (*EmptyResp) Reset

func (x *EmptyResp) Reset()

func (*EmptyResp) String

func (x *EmptyResp) String() string

type FindOperationLogListReq

type FindOperationLogListReq struct {
	Page     int64    `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize int64    `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Sorts    []string `protobuf:"bytes,3,rep,name=sorts,proto3" json:"sorts,omitempty"` // 排序
	// contains filtered or unexported fields
}

func (*FindOperationLogListReq) Descriptor deprecated

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

Deprecated: Use FindOperationLogListReq.ProtoReflect.Descriptor instead.

func (*FindOperationLogListReq) GetPage

func (x *FindOperationLogListReq) GetPage() int64

func (*FindOperationLogListReq) GetPageSize

func (x *FindOperationLogListReq) GetPageSize() int64

func (*FindOperationLogListReq) GetSorts

func (x *FindOperationLogListReq) GetSorts() []string

func (*FindOperationLogListReq) ProtoMessage

func (*FindOperationLogListReq) ProtoMessage()

func (*FindOperationLogListReq) ProtoReflect

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

func (*FindOperationLogListReq) Reset

func (x *FindOperationLogListReq) Reset()

func (*FindOperationLogListReq) String

func (x *FindOperationLogListReq) String() string

type FindOperationLogListResp

type FindOperationLogListResp struct {
	List  []*OperationLogDetails `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	Total int64                  `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*FindOperationLogListResp) Descriptor deprecated

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

Deprecated: Use FindOperationLogListResp.ProtoReflect.Descriptor instead.

func (*FindOperationLogListResp) GetList

func (*FindOperationLogListResp) GetTotal

func (x *FindOperationLogListResp) GetTotal() int64

func (*FindOperationLogListResp) ProtoMessage

func (*FindOperationLogListResp) ProtoMessage()

func (*FindOperationLogListResp) ProtoReflect

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

func (*FindOperationLogListResp) Reset

func (x *FindOperationLogListResp) Reset()

func (*FindOperationLogListResp) String

func (x *FindOperationLogListResp) String() string

type IdReq

type IdReq struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*IdReq) Descriptor deprecated

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

Deprecated: Use IdReq.ProtoReflect.Descriptor instead.

func (*IdReq) GetId

func (x *IdReq) GetId() int64

func (*IdReq) ProtoMessage

func (*IdReq) ProtoMessage()

func (*IdReq) ProtoReflect

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

func (*IdReq) Reset

func (x *IdReq) Reset()

func (*IdReq) String

func (x *IdReq) String() string

type IdsReq

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

func (*IdsReq) Descriptor deprecated

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

Deprecated: Use IdsReq.ProtoReflect.Descriptor instead.

func (*IdsReq) GetIds

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

func (*IdsReq) ProtoMessage

func (*IdsReq) ProtoMessage()

func (*IdsReq) ProtoReflect

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

func (*IdsReq) Reset

func (x *IdsReq) Reset()

func (*IdsReq) String

func (x *IdsReq) String() string

type OperationLogDetails

type OperationLogDetails struct {
	Id             int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                                                // 主键id
	UserId         string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`                           // 用户id
	Nickname       string `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"`                                     // 用户昵称
	IpAddress      string `protobuf:"bytes,4,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`                  // 操作ip
	IpSource       string `protobuf:"bytes,5,opt,name=ip_source,json=ipSource,proto3" json:"ip_source,omitempty"`                     // 操作地址
	OptModule      string `protobuf:"bytes,6,opt,name=opt_module,json=optModule,proto3" json:"opt_module,omitempty"`                  // 操作模块
	OptDesc        string `protobuf:"bytes,7,opt,name=opt_desc,json=optDesc,proto3" json:"opt_desc,omitempty"`                        // 操作描述
	RequestUrl     string `protobuf:"bytes,8,opt,name=request_url,json=requestUrl,proto3" json:"request_url,omitempty"`               // 请求地址
	RequestMethod  string `protobuf:"bytes,9,opt,name=request_method,json=requestMethod,proto3" json:"request_method,omitempty"`      // 请求方式
	RequestHeader  string `protobuf:"bytes,10,opt,name=request_header,json=requestHeader,proto3" json:"request_header,omitempty"`     // 请求头参数
	RequestData    string `protobuf:"bytes,11,opt,name=request_data,json=requestData,proto3" json:"request_data,omitempty"`           // 请求参数
	ResponseData   string `protobuf:"bytes,12,opt,name=response_data,json=responseData,proto3" json:"response_data,omitempty"`        // 返回数据
	ResponseStatus int64  `protobuf:"varint,13,opt,name=response_status,json=responseStatus,proto3" json:"response_status,omitempty"` // 响应状态码
	Cost           string `protobuf:"bytes,14,opt,name=cost,proto3" json:"cost,omitempty"`                                            // 耗时(ms)
	CreatedAt      int64  `protobuf:"varint,15,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`                // 创建时间
	UpdatedAt      int64  `protobuf:"varint,16,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`                // 更新时间
	// contains filtered or unexported fields
}

func (*OperationLogDetails) Descriptor deprecated

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

Deprecated: Use OperationLogDetails.ProtoReflect.Descriptor instead.

func (*OperationLogDetails) GetCost

func (x *OperationLogDetails) GetCost() string

func (*OperationLogDetails) GetCreatedAt

func (x *OperationLogDetails) GetCreatedAt() int64

func (*OperationLogDetails) GetId

func (x *OperationLogDetails) GetId() int64

func (*OperationLogDetails) GetIpAddress

func (x *OperationLogDetails) GetIpAddress() string

func (*OperationLogDetails) GetIpSource

func (x *OperationLogDetails) GetIpSource() string

func (*OperationLogDetails) GetNickname

func (x *OperationLogDetails) GetNickname() string

func (*OperationLogDetails) GetOptDesc

func (x *OperationLogDetails) GetOptDesc() string

func (*OperationLogDetails) GetOptModule

func (x *OperationLogDetails) GetOptModule() string

func (*OperationLogDetails) GetRequestData

func (x *OperationLogDetails) GetRequestData() string

func (*OperationLogDetails) GetRequestHeader

func (x *OperationLogDetails) GetRequestHeader() string

func (*OperationLogDetails) GetRequestMethod

func (x *OperationLogDetails) GetRequestMethod() string

func (*OperationLogDetails) GetRequestUrl

func (x *OperationLogDetails) GetRequestUrl() string

func (*OperationLogDetails) GetResponseData

func (x *OperationLogDetails) GetResponseData() string

func (*OperationLogDetails) GetResponseStatus

func (x *OperationLogDetails) GetResponseStatus() int64

func (*OperationLogDetails) GetUpdatedAt

func (x *OperationLogDetails) GetUpdatedAt() int64

func (*OperationLogDetails) GetUserId

func (x *OperationLogDetails) GetUserId() string

func (*OperationLogDetails) ProtoMessage

func (*OperationLogDetails) ProtoMessage()

func (*OperationLogDetails) ProtoReflect

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

func (*OperationLogDetails) Reset

func (x *OperationLogDetails) Reset()

func (*OperationLogDetails) String

func (x *OperationLogDetails) String() string

type OperationLogNewReq

type OperationLogNewReq struct {
	UserId         string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`                           // 用户id
	Nickname       string `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"`                                     // 用户昵称
	IpAddress      string `protobuf:"bytes,4,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`                  // 操作ip
	IpSource       string `protobuf:"bytes,5,opt,name=ip_source,json=ipSource,proto3" json:"ip_source,omitempty"`                     // 操作地址
	OptModule      string `protobuf:"bytes,6,opt,name=opt_module,json=optModule,proto3" json:"opt_module,omitempty"`                  // 操作模块
	OptDesc        string `protobuf:"bytes,7,opt,name=opt_desc,json=optDesc,proto3" json:"opt_desc,omitempty"`                        // 操作描述
	RequestUrl     string `protobuf:"bytes,8,opt,name=request_url,json=requestUrl,proto3" json:"request_url,omitempty"`               // 请求地址
	RequestMethod  string `protobuf:"bytes,9,opt,name=request_method,json=requestMethod,proto3" json:"request_method,omitempty"`      // 请求方式
	RequestHeader  string `protobuf:"bytes,10,opt,name=request_header,json=requestHeader,proto3" json:"request_header,omitempty"`     // 请求头参数
	RequestData    string `protobuf:"bytes,11,opt,name=request_data,json=requestData,proto3" json:"request_data,omitempty"`           // 请求参数
	ResponseData   string `protobuf:"bytes,12,opt,name=response_data,json=responseData,proto3" json:"response_data,omitempty"`        // 返回数据
	ResponseStatus int64  `protobuf:"varint,13,opt,name=response_status,json=responseStatus,proto3" json:"response_status,omitempty"` // 响应状态码
	Cost           string `protobuf:"bytes,14,opt,name=cost,proto3" json:"cost,omitempty"`                                            // 耗时(ms)
	// contains filtered or unexported fields
}

************* blog 日志管理 *************

func (*OperationLogNewReq) Descriptor deprecated

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

Deprecated: Use OperationLogNewReq.ProtoReflect.Descriptor instead.

func (*OperationLogNewReq) GetCost

func (x *OperationLogNewReq) GetCost() string

func (*OperationLogNewReq) GetIpAddress

func (x *OperationLogNewReq) GetIpAddress() string

func (*OperationLogNewReq) GetIpSource

func (x *OperationLogNewReq) GetIpSource() string

func (*OperationLogNewReq) GetNickname

func (x *OperationLogNewReq) GetNickname() string

func (*OperationLogNewReq) GetOptDesc

func (x *OperationLogNewReq) GetOptDesc() string

func (*OperationLogNewReq) GetOptModule

func (x *OperationLogNewReq) GetOptModule() string

func (*OperationLogNewReq) GetRequestData

func (x *OperationLogNewReq) GetRequestData() string

func (*OperationLogNewReq) GetRequestHeader

func (x *OperationLogNewReq) GetRequestHeader() string

func (*OperationLogNewReq) GetRequestMethod

func (x *OperationLogNewReq) GetRequestMethod() string

func (*OperationLogNewReq) GetRequestUrl

func (x *OperationLogNewReq) GetRequestUrl() string

func (*OperationLogNewReq) GetResponseData

func (x *OperationLogNewReq) GetResponseData() string

func (*OperationLogNewReq) GetResponseStatus

func (x *OperationLogNewReq) GetResponseStatus() int64

func (*OperationLogNewReq) GetUserId

func (x *OperationLogNewReq) GetUserId() string

func (*OperationLogNewReq) ProtoMessage

func (*OperationLogNewReq) ProtoMessage()

func (*OperationLogNewReq) ProtoReflect

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

func (*OperationLogNewReq) Reset

func (x *OperationLogNewReq) Reset()

func (*OperationLogNewReq) String

func (x *OperationLogNewReq) String() string

type SyslogRpcClient

type SyslogRpcClient interface {
	// 创建操作记录
	AddOperationLog(ctx context.Context, in *OperationLogNewReq, opts ...grpc.CallOption) (*OperationLogDetails, error)
	// 批量删除操作记录
	DeleteOperationLog(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*BatchResp, error)
	// 查询操作记录列表
	FindOperationLogList(ctx context.Context, in *FindOperationLogListReq, opts ...grpc.CallOption) (*FindOperationLogListResp, error)
}

SyslogRpcClient is the client API for SyslogRpc 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 NewSyslogRpcClient

func NewSyslogRpcClient(cc grpc.ClientConnInterface) SyslogRpcClient

type SyslogRpcServer

type SyslogRpcServer interface {
	// 创建操作记录
	AddOperationLog(context.Context, *OperationLogNewReq) (*OperationLogDetails, error)
	// 批量删除操作记录
	DeleteOperationLog(context.Context, *IdsReq) (*BatchResp, error)
	// 查询操作记录列表
	FindOperationLogList(context.Context, *FindOperationLogListReq) (*FindOperationLogListResp, error)
	// contains filtered or unexported methods
}

SyslogRpcServer is the server API for SyslogRpc service. All implementations must embed UnimplementedSyslogRpcServer for forward compatibility

type UnimplementedSyslogRpcServer

type UnimplementedSyslogRpcServer struct {
}

UnimplementedSyslogRpcServer must be embedded to have forward compatible implementations.

func (UnimplementedSyslogRpcServer) AddOperationLog

func (UnimplementedSyslogRpcServer) DeleteOperationLog

func (UnimplementedSyslogRpcServer) FindOperationLogList

type UnsafeSyslogRpcServer

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

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

type UserIdReq

type UserIdReq struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UserIdReq) Descriptor deprecated

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

Deprecated: Use UserIdReq.ProtoReflect.Descriptor instead.

func (*UserIdReq) GetUserId

func (x *UserIdReq) GetUserId() string

func (*UserIdReq) ProtoMessage

func (*UserIdReq) ProtoMessage()

func (*UserIdReq) ProtoReflect

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

func (*UserIdReq) Reset

func (x *UserIdReq) Reset()

func (*UserIdReq) String

func (x *UserIdReq) String() string

Jump to

Keyboard shortcuts

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