diss

package
v0.0.0-...-a610886 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FallInLoveRequest_XSizeEnum_name = map[int32]string{
	0: "normal",
	1: "small",
	2: "big",
}
View Source
var FallInLoveRequest_XSizeEnum_value = map[string]int32{
	"normal": 0,
	"small":  1,
	"big":    2,
}
View Source
var FallInLoveResponseSayEnum_name = map[int32]string{
	0: "noResponse",
	1: "yes",
	2: "no",
}
View Source
var FallInLoveResponseSayEnum_value = map[string]int32{
	"noResponse": 0,
	"yes":        1,
	"no":         2,
}
View Source
var FirstDiscoveryService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.FirstDiscoveryService",
	HandlerType: (*FirstDiscoveryServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Hello",
			Handler:    _FirstDiscoveryService_Hello_Handler,
		},
		{
			MethodName: "FallInLove",
			Handler:    _FirstDiscoveryService_FallInLove_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/discovery.proto",
}

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

Functions

func RegisterFirstDiscoveryServiceServer

func RegisterFirstDiscoveryServiceServer(s grpc.ServiceRegistrar, srv FirstDiscoveryServiceServer)

Types

type FallInLoveRequest

type FallInLoveRequest struct {
	MarrageWord          string                      `protobuf:"bytes,1,opt,name=marrageWord,proto3" json:"marrageWord,omitempty"`
	Ring                 bool                        `protobuf:"varint,2,opt,name=ring,proto3" json:"ring,omitempty"`
	RingWeight           int32                       `protobuf:"varint,3,opt,name=ringWeight,proto3" json:"ringWeight,omitempty"`
	XSize                FallInLoveRequest_XSizeEnum `protobuf:"varint,4,opt,name=XSize,proto3,enum=proto.FallInLoveRequest_XSizeEnum" json:"XSize,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

func (*FallInLoveRequest) Descriptor

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

func (*FallInLoveRequest) GetMarrageWord

func (m *FallInLoveRequest) GetMarrageWord() string

func (*FallInLoveRequest) GetRing

func (m *FallInLoveRequest) GetRing() bool

func (*FallInLoveRequest) GetRingWeight

func (m *FallInLoveRequest) GetRingWeight() int32

func (*FallInLoveRequest) GetXSize

func (*FallInLoveRequest) ProtoMessage

func (*FallInLoveRequest) ProtoMessage()

func (*FallInLoveRequest) Reset

func (m *FallInLoveRequest) Reset()

func (*FallInLoveRequest) String

func (m *FallInLoveRequest) String() string

func (*FallInLoveRequest) XXX_DiscardUnknown

func (m *FallInLoveRequest) XXX_DiscardUnknown()

func (*FallInLoveRequest) XXX_Marshal

func (m *FallInLoveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FallInLoveRequest) XXX_Merge

func (m *FallInLoveRequest) XXX_Merge(src proto.Message)

func (*FallInLoveRequest) XXX_Size

func (m *FallInLoveRequest) XXX_Size() int

func (*FallInLoveRequest) XXX_Unmarshal

func (m *FallInLoveRequest) XXX_Unmarshal(b []byte) error

type FallInLoveRequest_XSizeEnum

type FallInLoveRequest_XSizeEnum int32
const (
	FallInLoveRequest_normal FallInLoveRequest_XSizeEnum = 0
	FallInLoveRequest_small  FallInLoveRequest_XSizeEnum = 1
	FallInLoveRequest_big    FallInLoveRequest_XSizeEnum = 2
)

func (FallInLoveRequest_XSizeEnum) EnumDescriptor

func (FallInLoveRequest_XSizeEnum) EnumDescriptor() ([]byte, []int)

func (FallInLoveRequest_XSizeEnum) String

type FallInLoveResponse

type FallInLoveResponse struct {
	MarrageWord          string                    `protobuf:"bytes,1,opt,name=marrageWord,proto3" json:"marrageWord,omitempty"`
	Say                  FallInLoveResponseSayEnum `protobuf:"varint,2,opt,name=say,proto3,enum=proto.FallInLoveResponseSayEnum" json:"say,omitempty"`
	IsHappy              bool                      `protobuf:"varint,3,opt,name=isHappy,proto3" json:"isHappy,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

func (*FallInLoveResponse) Descriptor

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

func (*FallInLoveResponse) GetIsHappy

func (m *FallInLoveResponse) GetIsHappy() bool

func (*FallInLoveResponse) GetMarrageWord

func (m *FallInLoveResponse) GetMarrageWord() string

func (*FallInLoveResponse) GetSay

func (*FallInLoveResponse) ProtoMessage

func (*FallInLoveResponse) ProtoMessage()

func (*FallInLoveResponse) Reset

func (m *FallInLoveResponse) Reset()

func (*FallInLoveResponse) String

func (m *FallInLoveResponse) String() string

func (*FallInLoveResponse) XXX_DiscardUnknown

func (m *FallInLoveResponse) XXX_DiscardUnknown()

func (*FallInLoveResponse) XXX_Marshal

func (m *FallInLoveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FallInLoveResponse) XXX_Merge

func (m *FallInLoveResponse) XXX_Merge(src proto.Message)

func (*FallInLoveResponse) XXX_Size

func (m *FallInLoveResponse) XXX_Size() int

func (*FallInLoveResponse) XXX_Unmarshal

func (m *FallInLoveResponse) XXX_Unmarshal(b []byte) error

type FallInLoveResponseSayEnum

type FallInLoveResponseSayEnum int32
const (
	FallInLoveResponse_noResponse FallInLoveResponseSayEnum = 0
	FallInLoveResponse_yes        FallInLoveResponseSayEnum = 1
	FallInLoveResponse_no         FallInLoveResponseSayEnum = 2
)

func (FallInLoveResponseSayEnum) EnumDescriptor

func (FallInLoveResponseSayEnum) EnumDescriptor() ([]byte, []int)

func (FallInLoveResponseSayEnum) String

func (x FallInLoveResponseSayEnum) String() string

type FirstDiscoveryServiceClient

type FirstDiscoveryServiceClient interface {
	Hello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloResponse, error)
	FallInLove(ctx context.Context, in *FallInLoveRequest, opts ...grpc.CallOption) (*FallInLoveResponse, error)
}

FirstDiscoveryServiceClient is the client API for FirstDiscoveryService 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.

type FirstDiscoveryServiceServer

type FirstDiscoveryServiceServer interface {
	Hello(context.Context, *HelloRequest) (*HelloResponse, error)
	FallInLove(context.Context, *FallInLoveRequest) (*FallInLoveResponse, error)
	// contains filtered or unexported methods
}

FirstDiscoveryServiceServer is the server API for FirstDiscoveryService service. All implementations must embed UnimplementedFirstDiscoveryServiceServer for forward compatibility

type HelloRequest

type HelloRequest struct {
	HelloWord            string            `protobuf:"bytes,1,opt,name=helloWord,proto3" json:"helloWord,omitempty"`
	Custom               map[string]string `` /* 153-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*HelloRequest) Descriptor

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

func (*HelloRequest) GetCustom

func (m *HelloRequest) GetCustom() map[string]string

func (*HelloRequest) GetHelloWord

func (m *HelloRequest) GetHelloWord() string

func (*HelloRequest) ProtoMessage

func (*HelloRequest) ProtoMessage()

func (*HelloRequest) Reset

func (m *HelloRequest) Reset()

func (*HelloRequest) String

func (m *HelloRequest) String() string

func (*HelloRequest) XXX_DiscardUnknown

func (m *HelloRequest) XXX_DiscardUnknown()

func (*HelloRequest) XXX_Marshal

func (m *HelloRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HelloRequest) XXX_Merge

func (m *HelloRequest) XXX_Merge(src proto.Message)

func (*HelloRequest) XXX_Size

func (m *HelloRequest) XXX_Size() int

func (*HelloRequest) XXX_Unmarshal

func (m *HelloRequest) XXX_Unmarshal(b []byte) error

type HelloResponse

type HelloResponse struct {
	Addr                 string   `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	SvcName              string   `protobuf:"bytes,2,opt,name=svcName,proto3" json:"svcName,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HelloResponse) Descriptor

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

func (*HelloResponse) GetAddr

func (m *HelloResponse) GetAddr() string

func (*HelloResponse) GetSvcName

func (m *HelloResponse) GetSvcName() string

func (*HelloResponse) ProtoMessage

func (*HelloResponse) ProtoMessage()

func (*HelloResponse) Reset

func (m *HelloResponse) Reset()

func (*HelloResponse) String

func (m *HelloResponse) String() string

func (*HelloResponse) XXX_DiscardUnknown

func (m *HelloResponse) XXX_DiscardUnknown()

func (*HelloResponse) XXX_Marshal

func (m *HelloResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HelloResponse) XXX_Merge

func (m *HelloResponse) XXX_Merge(src proto.Message)

func (*HelloResponse) XXX_Size

func (m *HelloResponse) XXX_Size() int

func (*HelloResponse) XXX_Unmarshal

func (m *HelloResponse) XXX_Unmarshal(b []byte) error

type UnimplementedFirstDiscoveryServiceServer

type UnimplementedFirstDiscoveryServiceServer struct {
}

UnimplementedFirstDiscoveryServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedFirstDiscoveryServiceServer) FallInLove

func (UnimplementedFirstDiscoveryServiceServer) Hello

type UnsafeFirstDiscoveryServiceServer

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

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

Jump to

Keyboard shortcuts

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