v1

package
v0.0.0-...-2022bb5 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_lib_v1_lib_proto protoreflect.FileDescriptor
View Source
var Lib_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "lib.v1.Lib",
	HandlerType: (*LibServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _Lib_Create_Handler,
		},
		{
			MethodName: "GetOne",
			Handler:    _Lib_GetOne_Handler,
		},
		{
			MethodName: "GetList",
			Handler:    _Lib_GetList_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _Lib_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _Lib_Delete_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "lib/v1/lib.proto",
}

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

Functions

func RegisterLibServer

func RegisterLibServer(s grpc.ServiceRegistrar, srv LibServer)

Types

type CreateReq

type CreateReq struct {
	LibName string `protobuf:"bytes,1,opt,name=libName,proto3" json:"libName,omitempty" v:"required"` // v:required
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" v:"required"` // v:required
	Active  bool   `protobuf:"varint,3,opt,name=active,proto3" json:"active,omitempty" v:"required"`  // v:required
	// contains filtered or unexported fields
}

func (*CreateReq) Descriptor deprecated

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

Deprecated: Use CreateReq.ProtoReflect.Descriptor instead.

func (*CreateReq) GetActive

func (x *CreateReq) GetActive() bool

func (*CreateReq) GetAddress

func (x *CreateReq) GetAddress() string

func (*CreateReq) GetLibName

func (x *CreateReq) GetLibName() string

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 CreateRes

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

func (*CreateRes) Descriptor deprecated

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

Deprecated: Use CreateRes.ProtoReflect.Descriptor instead.

func (*CreateRes) GetId

func (x *CreateRes) GetId() int32

func (*CreateRes) ProtoMessage

func (*CreateRes) ProtoMessage()

func (*CreateRes) ProtoReflect

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

func (*CreateRes) Reset

func (x *CreateRes) Reset()

func (*CreateRes) String

func (x *CreateRes) String() string

type DeleteReq

type DeleteReq struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" v:"required"` // v:required
	// 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() int32

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 DeleteRes

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

func (*DeleteRes) Descriptor deprecated

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

Deprecated: Use DeleteRes.ProtoReflect.Descriptor instead.

func (*DeleteRes) GetId

func (x *DeleteRes) GetId() int32

func (*DeleteRes) ProtoMessage

func (*DeleteRes) ProtoMessage()

func (*DeleteRes) ProtoReflect

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

func (*DeleteRes) Reset

func (x *DeleteRes) Reset()

func (*DeleteRes) String

func (x *DeleteRes) String() string

type GetListReq

type GetListReq struct {
	Page     int32  `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty" v:"required"`                 // v:required
	PageSize int32  `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty" v:"required|max:100"` // v:required|max:100
	LibName  string `protobuf:"bytes,3,opt,name=libName,proto3" json:"libName,omitempty"`
	Address  string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"`
	Active   bool   `protobuf:"varint,5,opt,name=active,proto3" json:"active,omitempty"`
	// contains filtered or unexported fields
}

func (*GetListReq) Descriptor deprecated

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

Deprecated: Use GetListReq.ProtoReflect.Descriptor instead.

func (*GetListReq) GetActive

func (x *GetListReq) GetActive() bool

func (*GetListReq) GetAddress

func (x *GetListReq) GetAddress() string

func (*GetListReq) GetLibName

func (x *GetListReq) GetLibName() string

func (*GetListReq) GetPage

func (x *GetListReq) GetPage() int32

func (*GetListReq) GetPageSize

func (x *GetListReq) GetPageSize() int32

func (*GetListReq) ProtoMessage

func (*GetListReq) ProtoMessage()

func (*GetListReq) ProtoReflect

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

func (*GetListReq) Reset

func (x *GetListReq) Reset()

func (*GetListReq) String

func (x *GetListReq) String() string

type GetListRes

type GetListRes struct {
	Libs []*pbentity.Lib `protobuf:"bytes,1,rep,name=libs,proto3" json:"libs,omitempty"`
	// contains filtered or unexported fields
}

func (*GetListRes) Descriptor deprecated

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

Deprecated: Use GetListRes.ProtoReflect.Descriptor instead.

func (*GetListRes) GetLibs

func (x *GetListRes) GetLibs() []*pbentity.Lib

func (*GetListRes) ProtoMessage

func (*GetListRes) ProtoMessage()

func (*GetListRes) ProtoReflect

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

func (*GetListRes) Reset

func (x *GetListRes) Reset()

func (*GetListRes) String

func (x *GetListRes) String() string

type GetOneReq

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

func (*GetOneReq) Descriptor deprecated

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

Deprecated: Use GetOneReq.ProtoReflect.Descriptor instead.

func (*GetOneReq) GetId

func (x *GetOneReq) GetId() int32

func (*GetOneReq) ProtoMessage

func (*GetOneReq) ProtoMessage()

func (*GetOneReq) ProtoReflect

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

func (*GetOneReq) Reset

func (x *GetOneReq) Reset()

func (*GetOneReq) String

func (x *GetOneReq) String() string

type GetOneRes

type GetOneRes struct {
	Lib *pbentity.Lib `protobuf:"bytes,1,opt,name=lib,proto3" json:"lib,omitempty"`
	// contains filtered or unexported fields
}

func (*GetOneRes) Descriptor deprecated

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

Deprecated: Use GetOneRes.ProtoReflect.Descriptor instead.

func (*GetOneRes) GetLib

func (x *GetOneRes) GetLib() *pbentity.Lib

func (*GetOneRes) ProtoMessage

func (*GetOneRes) ProtoMessage()

func (*GetOneRes) ProtoReflect

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

func (*GetOneRes) Reset

func (x *GetOneRes) Reset()

func (*GetOneRes) String

func (x *GetOneRes) String() string

type LibClient

type LibClient interface {
	Create(ctx context.Context, in *CreateReq, opts ...grpc.CallOption) (*CreateRes, error)
	GetOne(ctx context.Context, in *GetOneReq, opts ...grpc.CallOption) (*GetOneRes, error)
	GetList(ctx context.Context, in *GetListReq, opts ...grpc.CallOption) (*GetListRes, error)
	Update(ctx context.Context, in *UpdateReq, opts ...grpc.CallOption) (*UpdateRes, error)
	Delete(ctx context.Context, in *DeleteReq, opts ...grpc.CallOption) (*DeleteRes, error)
}

LibClient is the client API for Lib 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 NewLibClient

func NewLibClient(cc grpc.ClientConnInterface) LibClient

type LibServer

type LibServer interface {
	Create(context.Context, *CreateReq) (*CreateRes, error)
	GetOne(context.Context, *GetOneReq) (*GetOneRes, error)
	GetList(context.Context, *GetListReq) (*GetListRes, error)
	Update(context.Context, *UpdateReq) (*UpdateRes, error)
	Delete(context.Context, *DeleteReq) (*DeleteRes, error)
	// contains filtered or unexported methods
}

LibServer is the server API for Lib service. All implementations must embed UnimplementedLibServer for forward compatibility

type UnimplementedLibServer

type UnimplementedLibServer struct {
}

UnimplementedLibServer must be embedded to have forward compatible implementations.

func (UnimplementedLibServer) Create

func (UnimplementedLibServer) Delete

func (UnimplementedLibServer) GetList

func (UnimplementedLibServer) GetOne

func (UnimplementedLibServer) Update

type UnsafeLibServer

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

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

type UpdateReq

type UpdateReq struct {
	Id      int32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" v:"required"`          // v:required
	LibName string `protobuf:"bytes,2,opt,name=libName,proto3" json:"libName,omitempty" v:"required"` // v:required
	Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty" v:"required"` // v:required
	Active  bool   `protobuf:"varint,4,opt,name=active,proto3" json:"active,omitempty" v:"required"`  // v:required
	// contains filtered or unexported fields
}

func (*UpdateReq) Descriptor deprecated

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

Deprecated: Use UpdateReq.ProtoReflect.Descriptor instead.

func (*UpdateReq) GetActive

func (x *UpdateReq) GetActive() bool

func (*UpdateReq) GetAddress

func (x *UpdateReq) GetAddress() string

func (*UpdateReq) GetId

func (x *UpdateReq) GetId() int32

func (*UpdateReq) GetLibName

func (x *UpdateReq) GetLibName() string

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 UpdateRes

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

func (*UpdateRes) Descriptor deprecated

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

Deprecated: Use UpdateRes.ProtoReflect.Descriptor instead.

func (*UpdateRes) GetId

func (x *UpdateRes) GetId() int32

func (*UpdateRes) ProtoMessage

func (*UpdateRes) ProtoMessage()

func (*UpdateRes) ProtoReflect

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

func (*UpdateRes) Reset

func (x *UpdateRes) Reset()

func (*UpdateRes) String

func (x *UpdateRes) String() string

Jump to

Keyboard shortcuts

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