pb

package
v0.0.0-...-a5d487a Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package pb includes protobufs for this example.

Index

Constants

This section is empty.

Variables

View Source
var (
	Cookie_Type_name = map[int32]string{
		0: "Sugar",
		1: "Oatmeal",
		2: "Chocolate",
	}
	Cookie_Type_value = map[string]int32{
		"Sugar":     0,
		"Oatmeal":   1,
		"Chocolate": 2,
	}
)

Enum value maps for Cookie_Type.

View Source
var File_sesamestreet_proto protoreflect.FileDescriptor

Functions

func DRPCRegisterCookieMonster

func DRPCRegisterCookieMonster(mux drpc.Mux, impl DRPCCookieMonsterServer) error

Types

type Cookie struct {
	Type Cookie_Type `protobuf:"varint,1,opt,name=type,proto3,enum=sesamestreet.Cookie_Type" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*Cookie) Descriptor deprecated

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

Deprecated: Use Cookie.ProtoReflect.Descriptor instead.

func (*Cookie) GetType

func (x *Cookie) GetType() Cookie_Type

func (*Cookie) ProtoMessage

func (*Cookie) ProtoMessage()

func (*Cookie) ProtoReflect

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

func (*Cookie) Reset

func (x *Cookie) Reset()

func (*Cookie) String

func (x *Cookie) String() string
type Cookie_Type int32
const (
	Cookie_Sugar     Cookie_Type = 0
	Cookie_Oatmeal   Cookie_Type = 1
	Cookie_Chocolate Cookie_Type = 2
)
func (x Cookie_Type) Enum() *Cookie_Type
func (Cookie_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Cookie_Type.Descriptor instead.

func (x Cookie_Type) Number() protoreflect.EnumNumber
func (x Cookie_Type) String() string

type Crumbs

type Crumbs struct {
	Cookie *Cookie `protobuf:"bytes,1,opt,name=cookie,proto3" json:"cookie,omitempty"`
	// contains filtered or unexported fields
}

func (*Crumbs) Descriptor deprecated

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

Deprecated: Use Crumbs.ProtoReflect.Descriptor instead.

func (*Crumbs) GetCookie

func (x *Crumbs) GetCookie() *Cookie

func (*Crumbs) ProtoMessage

func (*Crumbs) ProtoMessage()

func (*Crumbs) ProtoReflect

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

func (*Crumbs) Reset

func (x *Crumbs) Reset()

func (*Crumbs) String

func (x *Crumbs) String() string

type DRPCCookieMonsterClient

type DRPCCookieMonsterClient interface {
	DRPCConn() drpc.Conn

	EatCookie(ctx context.Context, in *Cookie) (*Crumbs, error)
}

func NewDRPCCookieMonsterClient

func NewDRPCCookieMonsterClient(cc drpc.Conn) DRPCCookieMonsterClient

type DRPCCookieMonsterDescription

type DRPCCookieMonsterDescription struct{}

func (DRPCCookieMonsterDescription) Method

func (DRPCCookieMonsterDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, interface{}, bool)

func (DRPCCookieMonsterDescription) NumMethods

func (DRPCCookieMonsterDescription) NumMethods() int

type DRPCCookieMonsterServer

type DRPCCookieMonsterServer interface {
	EatCookie(context.Context, *Cookie) (*Crumbs, error)
}

type DRPCCookieMonsterUnimplementedServer

type DRPCCookieMonsterUnimplementedServer struct{}

func (*DRPCCookieMonsterUnimplementedServer) EatCookie

type DRPCCookieMonster_EatCookieStream

type DRPCCookieMonster_EatCookieStream interface {
	drpc.Stream
	SendAndClose(*Crumbs) error
}

Jump to

Keyboard shortcuts

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