v1

package
v0.0.0-...-032cc0f Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const OperationLayoutV1ChainBotWebHook = "/api.helloworld.v1.LayoutV1/ChainBotWebHook"

Variables

View Source
var File_api_helloworld_v1_api_proto protoreflect.FileDescriptor
View Source
var LayoutV1_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.helloworld.v1.LayoutV1",
	HandlerType: (*LayoutV1Server)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ChainBotWebHook",
			Handler:    _LayoutV1_ChainBotWebHook_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/helloworld/v1/api.proto",
}

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

Functions

func RegisterLayoutV1HTTPServer

func RegisterLayoutV1HTTPServer(s *http.Server, srv LayoutV1HTTPServer)

func RegisterLayoutV1Server

func RegisterLayoutV1Server(s grpc.ServiceRegistrar, srv LayoutV1Server)

Types

type ChainBotWebHookReply

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

func (*ChainBotWebHookReply) Descriptor deprecated

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

Deprecated: Use ChainBotWebHookReply.ProtoReflect.Descriptor instead.

func (*ChainBotWebHookReply) ProtoMessage

func (*ChainBotWebHookReply) ProtoMessage()

func (*ChainBotWebHookReply) ProtoReflect

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

func (*ChainBotWebHookReply) Reset

func (x *ChainBotWebHookReply) Reset()

func (*ChainBotWebHookReply) String

func (x *ChainBotWebHookReply) String() string

func (*ChainBotWebHookReply) Validate

func (m *ChainBotWebHookReply) Validate() error

Validate checks the field values on ChainBotWebHookReply 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 (*ChainBotWebHookReply) ValidateAll

func (m *ChainBotWebHookReply) ValidateAll() error

ValidateAll checks the field values on ChainBotWebHookReply 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 ChainBotWebHookReplyMultiError, or nil if none found.

type ChainBotWebHookReplyMultiError

type ChainBotWebHookReplyMultiError []error

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

func (ChainBotWebHookReplyMultiError) AllErrors

func (m ChainBotWebHookReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ChainBotWebHookReplyMultiError) Error

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

type ChainBotWebHookReplyValidationError

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

ChainBotWebHookReplyValidationError is the validation error returned by ChainBotWebHookReply.Validate if the designated constraints aren't met.

func (ChainBotWebHookReplyValidationError) Cause

Cause function returns cause value.

func (ChainBotWebHookReplyValidationError) Error

Error satisfies the builtin error interface

func (ChainBotWebHookReplyValidationError) ErrorName

ErrorName returns error name.

func (ChainBotWebHookReplyValidationError) Field

Field function returns field value.

func (ChainBotWebHookReplyValidationError) Key

Key function returns key value.

func (ChainBotWebHookReplyValidationError) Reason

Reason function returns reason value.

type ChainBotWebHookRequest

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

func (*ChainBotWebHookRequest) Descriptor deprecated

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

Deprecated: Use ChainBotWebHookRequest.ProtoReflect.Descriptor instead.

func (*ChainBotWebHookRequest) ProtoMessage

func (*ChainBotWebHookRequest) ProtoMessage()

func (*ChainBotWebHookRequest) ProtoReflect

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

func (*ChainBotWebHookRequest) Reset

func (x *ChainBotWebHookRequest) Reset()

func (*ChainBotWebHookRequest) String

func (x *ChainBotWebHookRequest) String() string

func (*ChainBotWebHookRequest) Validate

func (m *ChainBotWebHookRequest) Validate() error

Validate checks the field values on ChainBotWebHookRequest 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 (*ChainBotWebHookRequest) ValidateAll

func (m *ChainBotWebHookRequest) ValidateAll() error

ValidateAll checks the field values on ChainBotWebHookRequest 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 ChainBotWebHookRequestMultiError, or nil if none found.

type ChainBotWebHookRequestMultiError

type ChainBotWebHookRequestMultiError []error

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

func (ChainBotWebHookRequestMultiError) AllErrors

func (m ChainBotWebHookRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ChainBotWebHookRequestMultiError) Error

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

type ChainBotWebHookRequestValidationError

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

ChainBotWebHookRequestValidationError is the validation error returned by ChainBotWebHookRequest.Validate if the designated constraints aren't met.

func (ChainBotWebHookRequestValidationError) Cause

Cause function returns cause value.

func (ChainBotWebHookRequestValidationError) Error

Error satisfies the builtin error interface

func (ChainBotWebHookRequestValidationError) ErrorName

ErrorName returns error name.

func (ChainBotWebHookRequestValidationError) Field

Field function returns field value.

func (ChainBotWebHookRequestValidationError) Key

Key function returns key value.

func (ChainBotWebHookRequestValidationError) Reason

Reason function returns reason value.

type LayoutV1Client

type LayoutV1Client interface {
	ChainBotWebHook(ctx context.Context, in *ChainBotWebHookRequest, opts ...grpc.CallOption) (*ChainBotWebHookReply, error)
}

LayoutV1Client is the client API for LayoutV1 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 NewLayoutV1Client

func NewLayoutV1Client(cc grpc.ClientConnInterface) LayoutV1Client

type LayoutV1HTTPClient

type LayoutV1HTTPClient interface {
	ChainBotWebHook(ctx context.Context, req *ChainBotWebHookRequest, opts ...http.CallOption) (rsp *ChainBotWebHookReply, err error)
}

func NewLayoutV1HTTPClient

func NewLayoutV1HTTPClient(client *http.Client) LayoutV1HTTPClient

type LayoutV1HTTPClientImpl

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

func (*LayoutV1HTTPClientImpl) ChainBotWebHook

type LayoutV1HTTPServer

type LayoutV1HTTPServer interface {
	ChainBotWebHook(context.Context, *ChainBotWebHookRequest) (*ChainBotWebHookReply, error)
}

type LayoutV1Server

type LayoutV1Server interface {
	ChainBotWebHook(context.Context, *ChainBotWebHookRequest) (*ChainBotWebHookReply, error)
	// contains filtered or unexported methods
}

LayoutV1Server is the server API for LayoutV1 service. All implementations must embed UnimplementedLayoutV1Server for forward compatibility

type UnimplementedLayoutV1Server

type UnimplementedLayoutV1Server struct {
}

UnimplementedLayoutV1Server must be embedded to have forward compatible implementations.

func (UnimplementedLayoutV1Server) ChainBotWebHook

type UnsafeLayoutV1Server

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

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

Jump to

Keyboard shortcuts

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