service

package
Version: v0.0.38 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2020 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterUserMetaServer

func RegisterUserMetaServer(s *grpc.Server, srv UserMetaServer)

Types

type Data

type Data struct {
	UserID               string   `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"`
	AccountStatus        string   `protobuf:"bytes,2,opt,name=accountStatus,proto3" json:"accountStatus,omitempty"`
	AccountCreationUTC   int64    `protobuf:"varint,3,opt,name=accountCreationUTC,proto3" json:"accountCreationUTC,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Data) Descriptor

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

func (*Data) GetAccountCreationUTC

func (m *Data) GetAccountCreationUTC() int64

func (*Data) GetAccountStatus

func (m *Data) GetAccountStatus() string

func (*Data) GetUserID

func (m *Data) GetUserID() string

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) Reset

func (m *Data) Reset()

func (*Data) String

func (m *Data) String() string

func (*Data) XXX_DiscardUnknown

func (m *Data) XXX_DiscardUnknown()

func (*Data) XXX_Marshal

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

func (*Data) XXX_Merge

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

func (*Data) XXX_Size

func (m *Data) XXX_Size() int

func (*Data) XXX_Unmarshal

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

type Identifier

type Identifier struct {
	UserID               string   `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Identifier) Descriptor

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

func (*Identifier) GetUserID

func (m *Identifier) GetUserID() string

func (*Identifier) ProtoMessage

func (*Identifier) ProtoMessage()

func (*Identifier) Reset

func (m *Identifier) Reset()

func (*Identifier) String

func (m *Identifier) String() string

func (*Identifier) XXX_DiscardUnknown

func (m *Identifier) XXX_DiscardUnknown()

func (*Identifier) XXX_Marshal

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

func (*Identifier) XXX_Merge

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

func (*Identifier) XXX_Size

func (m *Identifier) XXX_Size() int

func (*Identifier) XXX_Unmarshal

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

type Message

type Message struct {
	Message              string   `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Message) Descriptor

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

func (*Message) GetMessage

func (m *Message) GetMessage() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *Message) String() string

func (*Message) XXX_DiscardUnknown

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal

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

func (*Message) XXX_Merge

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

func (*Message) XXX_Size

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal

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

type UnimplementedUserMetaServer

type UnimplementedUserMetaServer struct {
}

UnimplementedUserMetaServer can be embedded to have forward compatible implementations.

func (*UnimplementedUserMetaServer) Activate

func (*UnimplementedUserMetaServer) Add

func (*UnimplementedUserMetaServer) Delete

func (*UnimplementedUserMetaServer) Get

type UserMetaClient

type UserMetaClient interface {
	Add(ctx context.Context, in *Identifier, opts ...grpc.CallOption) (*Message, error)
	Get(ctx context.Context, in *Identifier, opts ...grpc.CallOption) (*Data, error)
	Activate(ctx context.Context, in *Identifier, opts ...grpc.CallOption) (*Message, error)
	Delete(ctx context.Context, in *Identifier, opts ...grpc.CallOption) (*Message, error)
}

UserMetaClient is the client API for UserMeta service.

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

func NewUserMetaClient

func NewUserMetaClient(cc *grpc.ClientConn) UserMetaClient

type UserMetaServer

type UserMetaServer interface {
	Add(context.Context, *Identifier) (*Message, error)
	Get(context.Context, *Identifier) (*Data, error)
	Activate(context.Context, *Identifier) (*Message, error)
	Delete(context.Context, *Identifier) (*Message, error)
}

UserMetaServer is the server API for UserMeta service.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL