v1

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Service_AllChannel_FullMethodName    = "/channel.Service/AllChannel"
	Service_GetTypes_FullMethodName      = "/channel.Service/GetTypes"
	Service_AddChannel_FullMethodName    = "/channel.Service/AddChannel"
	Service_UpdateChannel_FullMethodName = "/channel.Service/UpdateChannel"
	Service_DeleteChannel_FullMethodName = "/channel.Service/DeleteChannel"
)
View Source
const OperationServiceAddChannel = "/channel.Service/AddChannel"
View Source
const OperationServiceAllChannel = "/channel.Service/AllChannel"
View Source
const OperationServiceDeleteChannel = "/channel.Service/DeleteChannel"
View Source
const OperationServiceGetTypes = "/channel.Service/GetTypes"
View Source
const OperationServiceUpdateChannel = "/channel.Service/UpdateChannel"

Variables

View Source
var File_user_center_channel_proto protoreflect.FileDescriptor
View Source
var File_user_center_channel_service_proto protoreflect.FileDescriptor
View Source
var Service_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "channel.Service",
	HandlerType: (*ServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AllChannel",
			Handler:    _Service_AllChannel_Handler,
		},
		{
			MethodName: "GetTypes",
			Handler:    _Service_GetTypes_Handler,
		},
		{
			MethodName: "AddChannel",
			Handler:    _Service_AddChannel_Handler,
		},
		{
			MethodName: "UpdateChannel",
			Handler:    _Service_UpdateChannel_Handler,
		},
		{
			MethodName: "DeleteChannel",
			Handler:    _Service_DeleteChannel_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "user_center_channel_service.proto",
}

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

Functions

func RegisterServiceHTTPServer

func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)

func RegisterServiceServer

func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)

Types

type AddChannelReply

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

func (*AddChannelReply) Descriptor deprecated

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

Deprecated: Use AddChannelReply.ProtoReflect.Descriptor instead.

func (*AddChannelReply) GetId

func (x *AddChannelReply) GetId() uint32

func (*AddChannelReply) ProtoMessage

func (*AddChannelReply) ProtoMessage()

func (*AddChannelReply) ProtoReflect

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

func (*AddChannelReply) Reset

func (x *AddChannelReply) Reset()

func (*AddChannelReply) String

func (x *AddChannelReply) String() string

func (*AddChannelReply) Validate

func (m *AddChannelReply) Validate() error

Validate checks the field values on AddChannelReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AddChannelReply) ValidateAll

func (m *AddChannelReply) ValidateAll() error

ValidateAll checks the field values on AddChannelReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AddChannelReplyMultiError, or nil if none found.

type AddChannelReplyMultiError

type AddChannelReplyMultiError []error

AddChannelReplyMultiError is an error wrapping multiple validation errors returned by AddChannelReply.ValidateAll() if the designated constraints aren't met.

func (AddChannelReplyMultiError) AllErrors

func (m AddChannelReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddChannelReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AddChannelReplyValidationError

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

AddChannelReplyValidationError is the validation error returned by AddChannelReply.Validate if the designated constraints aren't met.

func (AddChannelReplyValidationError) Cause

Cause function returns cause value.

func (AddChannelReplyValidationError) Error

Error satisfies the builtin error interface

func (AddChannelReplyValidationError) ErrorName

func (e AddChannelReplyValidationError) ErrorName() string

ErrorName returns error name.

func (AddChannelReplyValidationError) Field

Field function returns field value.

func (AddChannelReplyValidationError) Key

Key function returns key value.

func (AddChannelReplyValidationError) Reason

Reason function returns reason value.

type AddChannelRequest

type AddChannelRequest struct {
	Platform string  `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform,omitempty"`
	Name     string  `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Ak       *string `protobuf:"bytes,4,opt,name=ak,proto3,oneof" json:"ak,omitempty"`
	Sk       *string `protobuf:"bytes,5,opt,name=sk,proto3,oneof" json:"sk,omitempty"`
	Extra    *string `protobuf:"bytes,6,opt,name=extra,proto3,oneof" json:"extra,omitempty"`
	Status   *bool   `protobuf:"varint,7,opt,name=status,proto3,oneof" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*AddChannelRequest) Descriptor deprecated

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

Deprecated: Use AddChannelRequest.ProtoReflect.Descriptor instead.

func (*AddChannelRequest) GetAk

func (x *AddChannelRequest) GetAk() string

func (*AddChannelRequest) GetExtra

func (x *AddChannelRequest) GetExtra() string
func (x *AddChannelRequest) GetLogo() string

func (*AddChannelRequest) GetName

func (x *AddChannelRequest) GetName() string

func (*AddChannelRequest) GetPlatform

func (x *AddChannelRequest) GetPlatform() string

func (*AddChannelRequest) GetSk

func (x *AddChannelRequest) GetSk() string

func (*AddChannelRequest) GetStatus

func (x *AddChannelRequest) GetStatus() bool

func (*AddChannelRequest) ProtoMessage

func (*AddChannelRequest) ProtoMessage()

func (*AddChannelRequest) ProtoReflect

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

func (*AddChannelRequest) Reset

func (x *AddChannelRequest) Reset()

func (*AddChannelRequest) String

func (x *AddChannelRequest) String() string

func (*AddChannelRequest) Validate

func (m *AddChannelRequest) Validate() error

Validate checks the field values on AddChannelRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AddChannelRequest) ValidateAll

func (m *AddChannelRequest) ValidateAll() error

ValidateAll checks the field values on AddChannelRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AddChannelRequestMultiError, or nil if none found.

type AddChannelRequestMultiError

type AddChannelRequestMultiError []error

AddChannelRequestMultiError is an error wrapping multiple validation errors returned by AddChannelRequest.ValidateAll() if the designated constraints aren't met.

func (AddChannelRequestMultiError) AllErrors

func (m AddChannelRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddChannelRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AddChannelRequestValidationError

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

AddChannelRequestValidationError is the validation error returned by AddChannelRequest.Validate if the designated constraints aren't met.

func (AddChannelRequestValidationError) Cause

Cause function returns cause value.

func (AddChannelRequestValidationError) Error

Error satisfies the builtin error interface

func (AddChannelRequestValidationError) ErrorName

ErrorName returns error name.

func (AddChannelRequestValidationError) Field

Field function returns field value.

func (AddChannelRequestValidationError) Key

Key function returns key value.

func (AddChannelRequestValidationError) Reason

Reason function returns reason value.

type AllChannelReply

type AllChannelReply struct {
	List []*Channel `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*AllChannelReply) Descriptor deprecated

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

Deprecated: Use AllChannelReply.ProtoReflect.Descriptor instead.

func (*AllChannelReply) GetList

func (x *AllChannelReply) GetList() []*Channel

func (*AllChannelReply) ProtoMessage

func (*AllChannelReply) ProtoMessage()

func (*AllChannelReply) ProtoReflect

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

func (*AllChannelReply) Reset

func (x *AllChannelReply) Reset()

func (*AllChannelReply) String

func (x *AllChannelReply) String() string

func (*AllChannelReply) Validate

func (m *AllChannelReply) Validate() error

Validate checks the field values on AllChannelReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AllChannelReply) ValidateAll

func (m *AllChannelReply) ValidateAll() error

ValidateAll checks the field values on AllChannelReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AllChannelReplyMultiError, or nil if none found.

type AllChannelReplyMultiError

type AllChannelReplyMultiError []error

AllChannelReplyMultiError is an error wrapping multiple validation errors returned by AllChannelReply.ValidateAll() if the designated constraints aren't met.

func (AllChannelReplyMultiError) AllErrors

func (m AllChannelReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AllChannelReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AllChannelReplyValidationError

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

AllChannelReplyValidationError is the validation error returned by AllChannelReply.Validate if the designated constraints aren't met.

func (AllChannelReplyValidationError) Cause

Cause function returns cause value.

func (AllChannelReplyValidationError) Error

Error satisfies the builtin error interface

func (AllChannelReplyValidationError) ErrorName

func (e AllChannelReplyValidationError) ErrorName() string

ErrorName returns error name.

func (AllChannelReplyValidationError) Field

Field function returns field value.

func (AllChannelReplyValidationError) Key

Key function returns key value.

func (AllChannelReplyValidationError) Reason

Reason function returns reason value.

type Channel

type Channel struct {
	Id        uint32   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Platform  string   `protobuf:"bytes,3,opt,name=platform,proto3" json:"platform,omitempty"`
	Name      string   `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Ak        string   `protobuf:"bytes,5,opt,name=ak,proto3" json:"ak,omitempty"`
	Sk        string   `protobuf:"bytes,6,opt,name=sk,proto3" json:"sk,omitempty"`
	Extra     string   `protobuf:"bytes,7,opt,name=extra,proto3" json:"extra,omitempty"`
	Status    *bool    `protobuf:"varint,8,opt,name=status,proto3,oneof" json:"status,omitempty"`
	CreatedAt uint32   `protobuf:"varint,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt uint32   `protobuf:"varint,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	Resource  *v1.File `protobuf:"bytes,11,opt,name=resource,proto3" json:"resource,omitempty"`
	// contains filtered or unexported fields
}

func (*Channel) Descriptor deprecated

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

Deprecated: Use Channel.ProtoReflect.Descriptor instead.

func (*Channel) GetAk

func (x *Channel) GetAk() string

func (*Channel) GetCreatedAt

func (x *Channel) GetCreatedAt() uint32

func (*Channel) GetExtra

func (x *Channel) GetExtra() string

func (*Channel) GetId

func (x *Channel) GetId() uint32
func (x *Channel) GetLogo() string

func (*Channel) GetName

func (x *Channel) GetName() string

func (*Channel) GetPlatform

func (x *Channel) GetPlatform() string

func (*Channel) GetResource

func (x *Channel) GetResource() *v1.File

func (*Channel) GetSk

func (x *Channel) GetSk() string

func (*Channel) GetStatus

func (x *Channel) GetStatus() bool

func (*Channel) GetUpdatedAt

func (x *Channel) GetUpdatedAt() uint32

func (*Channel) ProtoMessage

func (*Channel) ProtoMessage()

func (*Channel) ProtoReflect

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

func (*Channel) Reset

func (x *Channel) Reset()

func (*Channel) String

func (x *Channel) String() string

func (*Channel) Validate

func (m *Channel) Validate() error

Validate checks the field values on Channel with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Channel) ValidateAll

func (m *Channel) ValidateAll() error

ValidateAll checks the field values on Channel with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ChannelMultiError, or nil if none found.

type ChannelMultiError

type ChannelMultiError []error

ChannelMultiError is an error wrapping multiple validation errors returned by Channel.ValidateAll() if the designated constraints aren't met.

func (ChannelMultiError) AllErrors

func (m ChannelMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ChannelMultiError) Error

func (m ChannelMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ChannelValidationError

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

ChannelValidationError is the validation error returned by Channel.Validate if the designated constraints aren't met.

func (ChannelValidationError) Cause

func (e ChannelValidationError) Cause() error

Cause function returns cause value.

func (ChannelValidationError) Error

func (e ChannelValidationError) Error() string

Error satisfies the builtin error interface

func (ChannelValidationError) ErrorName

func (e ChannelValidationError) ErrorName() string

ErrorName returns error name.

func (ChannelValidationError) Field

func (e ChannelValidationError) Field() string

Field function returns field value.

func (ChannelValidationError) Key

func (e ChannelValidationError) Key() bool

Key function returns key value.

func (ChannelValidationError) Reason

func (e ChannelValidationError) Reason() string

Reason function returns reason value.

type DeleteChannelRequest

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

func (*DeleteChannelRequest) Descriptor deprecated

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

Deprecated: Use DeleteChannelRequest.ProtoReflect.Descriptor instead.

func (*DeleteChannelRequest) GetId

func (x *DeleteChannelRequest) GetId() uint32

func (*DeleteChannelRequest) ProtoMessage

func (*DeleteChannelRequest) ProtoMessage()

func (*DeleteChannelRequest) ProtoReflect

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

func (*DeleteChannelRequest) Reset

func (x *DeleteChannelRequest) Reset()

func (*DeleteChannelRequest) String

func (x *DeleteChannelRequest) String() string

func (*DeleteChannelRequest) Validate

func (m *DeleteChannelRequest) Validate() error

Validate checks the field values on DeleteChannelRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteChannelRequest) ValidateAll

func (m *DeleteChannelRequest) ValidateAll() error

ValidateAll checks the field values on DeleteChannelRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteChannelRequestMultiError, or nil if none found.

type DeleteChannelRequestMultiError

type DeleteChannelRequestMultiError []error

DeleteChannelRequestMultiError is an error wrapping multiple validation errors returned by DeleteChannelRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteChannelRequestMultiError) AllErrors

func (m DeleteChannelRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteChannelRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteChannelRequestValidationError

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

DeleteChannelRequestValidationError is the validation error returned by DeleteChannelRequest.Validate if the designated constraints aren't met.

func (DeleteChannelRequestValidationError) Cause

Cause function returns cause value.

func (DeleteChannelRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteChannelRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteChannelRequestValidationError) Field

Field function returns field value.

func (DeleteChannelRequestValidationError) Key

Key function returns key value.

func (DeleteChannelRequestValidationError) Reason

Reason function returns reason value.

type GetTypesReply

type GetTypesReply struct {
	List []*GetTypesReply_Typer `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTypesReply) Descriptor deprecated

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

Deprecated: Use GetTypesReply.ProtoReflect.Descriptor instead.

func (*GetTypesReply) GetList

func (x *GetTypesReply) GetList() []*GetTypesReply_Typer

func (*GetTypesReply) ProtoMessage

func (*GetTypesReply) ProtoMessage()

func (*GetTypesReply) ProtoReflect

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

func (*GetTypesReply) Reset

func (x *GetTypesReply) Reset()

func (*GetTypesReply) String

func (x *GetTypesReply) String() string

func (*GetTypesReply) Validate

func (m *GetTypesReply) Validate() error

Validate checks the field values on GetTypesReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetTypesReply) ValidateAll

func (m *GetTypesReply) ValidateAll() error

ValidateAll checks the field values on GetTypesReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetTypesReplyMultiError, or nil if none found.

type GetTypesReplyMultiError

type GetTypesReplyMultiError []error

GetTypesReplyMultiError is an error wrapping multiple validation errors returned by GetTypesReply.ValidateAll() if the designated constraints aren't met.

func (GetTypesReplyMultiError) AllErrors

func (m GetTypesReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetTypesReplyMultiError) Error

func (m GetTypesReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetTypesReplyValidationError

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

GetTypesReplyValidationError is the validation error returned by GetTypesReply.Validate if the designated constraints aren't met.

func (GetTypesReplyValidationError) Cause

Cause function returns cause value.

func (GetTypesReplyValidationError) Error

Error satisfies the builtin error interface

func (GetTypesReplyValidationError) ErrorName

func (e GetTypesReplyValidationError) ErrorName() string

ErrorName returns error name.

func (GetTypesReplyValidationError) Field

Field function returns field value.

func (GetTypesReplyValidationError) Key

Key function returns key value.

func (GetTypesReplyValidationError) Reason

Reason function returns reason value.

type GetTypesReply_Typer

type GetTypesReply_Typer struct {
	Platform string `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform,omitempty"`
	Name     string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTypesReply_Typer) Descriptor deprecated

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

Deprecated: Use GetTypesReply_Typer.ProtoReflect.Descriptor instead.

func (*GetTypesReply_Typer) GetName

func (x *GetTypesReply_Typer) GetName() string

func (*GetTypesReply_Typer) GetPlatform

func (x *GetTypesReply_Typer) GetPlatform() string

func (*GetTypesReply_Typer) ProtoMessage

func (*GetTypesReply_Typer) ProtoMessage()

func (*GetTypesReply_Typer) ProtoReflect

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

func (*GetTypesReply_Typer) Reset

func (x *GetTypesReply_Typer) Reset()

func (*GetTypesReply_Typer) String

func (x *GetTypesReply_Typer) String() string

func (*GetTypesReply_Typer) Validate

func (m *GetTypesReply_Typer) Validate() error

Validate checks the field values on GetTypesReply_Typer with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetTypesReply_Typer) ValidateAll

func (m *GetTypesReply_Typer) ValidateAll() error

ValidateAll checks the field values on GetTypesReply_Typer with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetTypesReply_TyperMultiError, or nil if none found.

type GetTypesReply_TyperMultiError

type GetTypesReply_TyperMultiError []error

GetTypesReply_TyperMultiError is an error wrapping multiple validation errors returned by GetTypesReply_Typer.ValidateAll() if the designated constraints aren't met.

func (GetTypesReply_TyperMultiError) AllErrors

func (m GetTypesReply_TyperMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetTypesReply_TyperMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetTypesReply_TyperValidationError

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

GetTypesReply_TyperValidationError is the validation error returned by GetTypesReply_Typer.Validate if the designated constraints aren't met.

func (GetTypesReply_TyperValidationError) Cause

Cause function returns cause value.

func (GetTypesReply_TyperValidationError) Error

Error satisfies the builtin error interface

func (GetTypesReply_TyperValidationError) ErrorName

ErrorName returns error name.

func (GetTypesReply_TyperValidationError) Field

Field function returns field value.

func (GetTypesReply_TyperValidationError) Key

Key function returns key value.

func (GetTypesReply_TyperValidationError) Reason

Reason function returns reason value.

type ServiceClient

type ServiceClient interface {
	// AllChannel 获取全部渠道信息
	AllChannel(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*AllChannelReply, error)
	// AllChannel 获取全部渠道信息
	GetTypes(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetTypesReply, error)
	// AddChannel 添加渠道信息
	AddChannel(ctx context.Context, in *AddChannelRequest, opts ...grpc.CallOption) (*AddChannelReply, error)
	// UpdateChannel 更新渠道信息
	UpdateChannel(ctx context.Context, in *UpdateChannelRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// DeleteChannel 删除渠道信息
	DeleteChannel(ctx context.Context, in *DeleteChannelRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

ServiceClient is the client API for Service 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 NewServiceClient

func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient

type ServiceHTTPClient

type ServiceHTTPClient interface {
	AddChannel(ctx context.Context, req *AddChannelRequest, opts ...http.CallOption) (rsp *AddChannelReply, err error)
	AllChannel(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *AllChannelReply, err error)
	DeleteChannel(ctx context.Context, req *DeleteChannelRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	GetTypes(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetTypesReply, err error)
	UpdateChannel(ctx context.Context, req *UpdateChannelRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
}

func NewServiceHTTPClient

func NewServiceHTTPClient(client *http.Client) ServiceHTTPClient

type ServiceHTTPClientImpl

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

func (*ServiceHTTPClientImpl) AddChannel

func (*ServiceHTTPClientImpl) AllChannel

func (c *ServiceHTTPClientImpl) AllChannel(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*AllChannelReply, error)

func (*ServiceHTTPClientImpl) DeleteChannel

func (*ServiceHTTPClientImpl) GetTypes

func (*ServiceHTTPClientImpl) UpdateChannel

type ServiceHTTPServer

type ServiceHTTPServer interface {
	// AddChannel AddChannel 添加渠道信息
	AddChannel(context.Context, *AddChannelRequest) (*AddChannelReply, error)
	// AllChannel AllChannel 获取全部渠道信息
	AllChannel(context.Context, *emptypb.Empty) (*AllChannelReply, error)
	// DeleteChannel DeleteChannel 删除渠道信息
	DeleteChannel(context.Context, *DeleteChannelRequest) (*emptypb.Empty, error)
	// GetTypes AllChannel 获取全部渠道信息
	GetTypes(context.Context, *emptypb.Empty) (*GetTypesReply, error)
	// UpdateChannel UpdateChannel 更新渠道信息
	UpdateChannel(context.Context, *UpdateChannelRequest) (*emptypb.Empty, error)
}

type ServiceServer

type ServiceServer interface {
	// AllChannel 获取全部渠道信息
	AllChannel(context.Context, *emptypb.Empty) (*AllChannelReply, error)
	// AllChannel 获取全部渠道信息
	GetTypes(context.Context, *emptypb.Empty) (*GetTypesReply, error)
	// AddChannel 添加渠道信息
	AddChannel(context.Context, *AddChannelRequest) (*AddChannelReply, error)
	// UpdateChannel 更新渠道信息
	UpdateChannel(context.Context, *UpdateChannelRequest) (*emptypb.Empty, error)
	// DeleteChannel 删除渠道信息
	DeleteChannel(context.Context, *DeleteChannelRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility

type UnimplementedServiceServer

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedServiceServer) AddChannel

func (UnimplementedServiceServer) AllChannel

func (UnimplementedServiceServer) DeleteChannel

func (UnimplementedServiceServer) GetTypes

func (UnimplementedServiceServer) UpdateChannel

type UnsafeServiceServer

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

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

type UpdateChannelRequest

type UpdateChannelRequest struct {
	Id       uint32  `protobuf:"varint,8,opt,name=id,proto3" json:"id,omitempty"`
	Platform string  `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform,omitempty"`
	Name     string  `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Ak       *string `protobuf:"bytes,4,opt,name=ak,proto3,oneof" json:"ak,omitempty"`
	Sk       *string `protobuf:"bytes,5,opt,name=sk,proto3,oneof" json:"sk,omitempty"`
	Extra    *string `protobuf:"bytes,6,opt,name=extra,proto3,oneof" json:"extra,omitempty"`
	Status   *bool   `protobuf:"varint,7,opt,name=status,proto3,oneof" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateChannelRequest) Descriptor deprecated

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

Deprecated: Use UpdateChannelRequest.ProtoReflect.Descriptor instead.

func (*UpdateChannelRequest) GetAk

func (x *UpdateChannelRequest) GetAk() string

func (*UpdateChannelRequest) GetExtra

func (x *UpdateChannelRequest) GetExtra() string

func (*UpdateChannelRequest) GetId

func (x *UpdateChannelRequest) GetId() uint32
func (x *UpdateChannelRequest) GetLogo() string

func (*UpdateChannelRequest) GetName

func (x *UpdateChannelRequest) GetName() string

func (*UpdateChannelRequest) GetPlatform

func (x *UpdateChannelRequest) GetPlatform() string

func (*UpdateChannelRequest) GetSk

func (x *UpdateChannelRequest) GetSk() string

func (*UpdateChannelRequest) GetStatus

func (x *UpdateChannelRequest) GetStatus() bool

func (*UpdateChannelRequest) ProtoMessage

func (*UpdateChannelRequest) ProtoMessage()

func (*UpdateChannelRequest) ProtoReflect

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

func (*UpdateChannelRequest) Reset

func (x *UpdateChannelRequest) Reset()

func (*UpdateChannelRequest) String

func (x *UpdateChannelRequest) String() string

func (*UpdateChannelRequest) Validate

func (m *UpdateChannelRequest) Validate() error

Validate checks the field values on UpdateChannelRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateChannelRequest) ValidateAll

func (m *UpdateChannelRequest) ValidateAll() error

ValidateAll checks the field values on UpdateChannelRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateChannelRequestMultiError, or nil if none found.

type UpdateChannelRequestMultiError

type UpdateChannelRequestMultiError []error

UpdateChannelRequestMultiError is an error wrapping multiple validation errors returned by UpdateChannelRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateChannelRequestMultiError) AllErrors

func (m UpdateChannelRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateChannelRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateChannelRequestValidationError

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

UpdateChannelRequestValidationError is the validation error returned by UpdateChannelRequest.Validate if the designated constraints aren't met.

func (UpdateChannelRequestValidationError) Cause

Cause function returns cause value.

func (UpdateChannelRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateChannelRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateChannelRequestValidationError) Field

Field function returns field value.

func (UpdateChannelRequestValidationError) Key

Key function returns key value.

func (UpdateChannelRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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