birthdaypb

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2019 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterBirthdayServer

func RegisterBirthdayServer(s *grpc.Server, srv BirthdayServer)

Types

type BirthdayClient

type BirthdayClient interface {
	SetBirthday(ctx context.Context, in *SetBirthdayRequest, opts ...grpc.CallOption) (*SetBirthdayReply, error)
	Query(ctx context.Context, in *QueryBirthdaysRequest, opts ...grpc.CallOption) (*QueryBirthdaysReply, error)
}

BirthdayClient is the client API for Birthday service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewBirthdayClient

func NewBirthdayClient(cc *grpc.ClientConn) BirthdayClient

type BirthdayServer

type BirthdayServer interface {
	SetBirthday(context.Context, *SetBirthdayRequest) (*SetBirthdayReply, error)
	Query(context.Context, *QueryBirthdaysRequest) (*QueryBirthdaysReply, error)
}

BirthdayServer is the server API for Birthday service.

type QueryBirthdaysReply added in v0.1.1

type QueryBirthdaysReply struct {
	Birthdays            []*UserBirthday `protobuf:"bytes,1,rep,name=birthdays,proto3" json:"birthdays,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*QueryBirthdaysReply) Descriptor added in v0.1.1

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

func (*QueryBirthdaysReply) GetBirthdays added in v0.1.1

func (m *QueryBirthdaysReply) GetBirthdays() []*UserBirthday

func (*QueryBirthdaysReply) ProtoMessage added in v0.1.1

func (*QueryBirthdaysReply) ProtoMessage()

func (*QueryBirthdaysReply) Reset added in v0.1.1

func (m *QueryBirthdaysReply) Reset()

func (*QueryBirthdaysReply) String added in v0.1.1

func (m *QueryBirthdaysReply) String() string

func (*QueryBirthdaysReply) XXX_DiscardUnknown added in v0.1.1

func (m *QueryBirthdaysReply) XXX_DiscardUnknown()

func (*QueryBirthdaysReply) XXX_Marshal added in v0.1.1

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

func (*QueryBirthdaysReply) XXX_Merge added in v0.1.1

func (dst *QueryBirthdaysReply) XXX_Merge(src proto.Message)

func (*QueryBirthdaysReply) XXX_Size added in v0.1.1

func (m *QueryBirthdaysReply) XXX_Size() int

func (*QueryBirthdaysReply) XXX_Unmarshal added in v0.1.1

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

type QueryBirthdaysRequest added in v0.1.1

type QueryBirthdaysRequest struct {
	ServerId             string   `protobuf:"bytes,1,opt,name=serverId,proto3" json:"serverId,omitempty"`
	Month                int32    `protobuf:"varint,2,opt,name=month,proto3" json:"month,omitempty"`
	Day                  int32    `protobuf:"varint,3,opt,name=day,proto3" json:"day,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*QueryBirthdaysRequest) Descriptor added in v0.1.1

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

func (*QueryBirthdaysRequest) GetDay added in v0.1.1

func (m *QueryBirthdaysRequest) GetDay() int32

func (*QueryBirthdaysRequest) GetMonth added in v0.1.1

func (m *QueryBirthdaysRequest) GetMonth() int32

func (*QueryBirthdaysRequest) GetServerId added in v0.1.1

func (m *QueryBirthdaysRequest) GetServerId() string

func (*QueryBirthdaysRequest) ProtoMessage added in v0.1.1

func (*QueryBirthdaysRequest) ProtoMessage()

func (*QueryBirthdaysRequest) Reset added in v0.1.1

func (m *QueryBirthdaysRequest) Reset()

func (*QueryBirthdaysRequest) String added in v0.1.1

func (m *QueryBirthdaysRequest) String() string

func (*QueryBirthdaysRequest) XXX_DiscardUnknown added in v0.1.1

func (m *QueryBirthdaysRequest) XXX_DiscardUnknown()

func (*QueryBirthdaysRequest) XXX_Marshal added in v0.1.1

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

func (*QueryBirthdaysRequest) XXX_Merge added in v0.1.1

func (dst *QueryBirthdaysRequest) XXX_Merge(src proto.Message)

func (*QueryBirthdaysRequest) XXX_Size added in v0.1.1

func (m *QueryBirthdaysRequest) XXX_Size() int

func (*QueryBirthdaysRequest) XXX_Unmarshal added in v0.1.1

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

type SetBirthdayReply

type SetBirthdayReply struct {
	Birthday             *UserBirthday `protobuf:"bytes,1,opt,name=birthday,proto3" json:"birthday,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*SetBirthdayReply) Descriptor

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

func (*SetBirthdayReply) GetBirthday

func (m *SetBirthdayReply) GetBirthday() *UserBirthday

func (*SetBirthdayReply) ProtoMessage

func (*SetBirthdayReply) ProtoMessage()

func (*SetBirthdayReply) Reset

func (m *SetBirthdayReply) Reset()

func (*SetBirthdayReply) String

func (m *SetBirthdayReply) String() string

func (*SetBirthdayReply) XXX_DiscardUnknown

func (m *SetBirthdayReply) XXX_DiscardUnknown()

func (*SetBirthdayReply) XXX_Marshal

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

func (*SetBirthdayReply) XXX_Merge

func (dst *SetBirthdayReply) XXX_Merge(src proto.Message)

func (*SetBirthdayReply) XXX_Size

func (m *SetBirthdayReply) XXX_Size() int

func (*SetBirthdayReply) XXX_Unmarshal

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

type SetBirthdayRequest

type SetBirthdayRequest struct {
	ServerId             string   `protobuf:"bytes,1,opt,name=serverId,proto3" json:"serverId,omitempty"`
	UserId               string   `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"`
	Month                int32    `protobuf:"varint,3,opt,name=month,proto3" json:"month,omitempty"`
	Day                  int32    `protobuf:"varint,4,opt,name=day,proto3" json:"day,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SetBirthdayRequest) Descriptor

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

func (*SetBirthdayRequest) GetDay

func (m *SetBirthdayRequest) GetDay() int32

func (*SetBirthdayRequest) GetMonth

func (m *SetBirthdayRequest) GetMonth() int32

func (*SetBirthdayRequest) GetServerId

func (m *SetBirthdayRequest) GetServerId() string

func (*SetBirthdayRequest) GetUserId

func (m *SetBirthdayRequest) GetUserId() string

func (*SetBirthdayRequest) ProtoMessage

func (*SetBirthdayRequest) ProtoMessage()

func (*SetBirthdayRequest) Reset

func (m *SetBirthdayRequest) Reset()

func (*SetBirthdayRequest) String

func (m *SetBirthdayRequest) String() string

func (*SetBirthdayRequest) XXX_DiscardUnknown

func (m *SetBirthdayRequest) XXX_DiscardUnknown()

func (*SetBirthdayRequest) XXX_Marshal

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

func (*SetBirthdayRequest) XXX_Merge

func (dst *SetBirthdayRequest) XXX_Merge(src proto.Message)

func (*SetBirthdayRequest) XXX_Size

func (m *SetBirthdayRequest) XXX_Size() int

func (*SetBirthdayRequest) XXX_Unmarshal

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

type UserBirthday

type UserBirthday struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	ServerId             string   `protobuf:"bytes,2,opt,name=serverId,proto3" json:"serverId,omitempty"`
	UserId               string   `protobuf:"bytes,3,opt,name=userId,proto3" json:"userId,omitempty"`
	Month                int32    `protobuf:"varint,4,opt,name=month,proto3" json:"month,omitempty"`
	Day                  int32    `protobuf:"varint,5,opt,name=day,proto3" json:"day,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UserBirthday) Descriptor

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

func (*UserBirthday) GetDay

func (m *UserBirthday) GetDay() int32

func (*UserBirthday) GetId

func (m *UserBirthday) GetId() string

func (*UserBirthday) GetMonth

func (m *UserBirthday) GetMonth() int32

func (*UserBirthday) GetServerId

func (m *UserBirthday) GetServerId() string

func (*UserBirthday) GetUserId

func (m *UserBirthday) GetUserId() string

func (*UserBirthday) ProtoMessage

func (*UserBirthday) ProtoMessage()

func (*UserBirthday) Reset

func (m *UserBirthday) Reset()

func (*UserBirthday) String

func (m *UserBirthday) String() string

func (*UserBirthday) XXX_DiscardUnknown

func (m *UserBirthday) XXX_DiscardUnknown()

func (*UserBirthday) XXX_Marshal

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

func (*UserBirthday) XXX_Merge

func (dst *UserBirthday) XXX_Merge(src proto.Message)

func (*UserBirthday) XXX_Size

func (m *UserBirthday) XXX_Size() int

func (*UserBirthday) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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