dbagent

package
v0.0.0-...-ba36472 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package dbagent is a generated protocol buffer package.

It is generated from these files:

base.proto
db_agent_server.proto
test_user.proto

It has these top-level messages:

Nil
BoolValue
IntValue
StringValue
KV
StringList
Int64List
TestUser
ListUser

Package dbagent is a generated protocol buffer package.

It is generated from these files:

base.proto
db_agent_server.proto
test_user.proto

It has these top-level messages:

Nil
BoolValue
IntValue
StringValue
KV
StringList
Int64List
TestUser
ListUser

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDbAgentServerHandler

func RegisterDbAgentServerHandler(s server.Server, hdlr DbAgentServerHandler, opts ...server.HandlerOption) error

Types

type BoolValue

type BoolValue struct {
	Value bool `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
}

func (*BoolValue) Descriptor

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

func (*BoolValue) GetValue

func (m *BoolValue) GetValue() bool

func (*BoolValue) ProtoMessage

func (*BoolValue) ProtoMessage()

func (*BoolValue) Reset

func (m *BoolValue) Reset()

func (*BoolValue) String

func (m *BoolValue) String() string

type DbAgentServerHandler

type DbAgentServerHandler interface {
	GetOneTestUser(context.Context, *StringValue, *TestUser) error
	GetAllTestUser(context.Context, *StringValue, *ListUser) error
}

type DbAgentServerService

type DbAgentServerService interface {
	GetOneTestUser(ctx context.Context, in *StringValue, opts ...client.CallOption) (*TestUser, error)
	GetAllTestUser(ctx context.Context, in *StringValue, opts ...client.CallOption) (*ListUser, error)
}

func NewDbAgentServerService

func NewDbAgentServerService(name string, c client.Client) DbAgentServerService

type Int64List

type Int64List struct {
	List []int64 `protobuf:"varint,1,rep,packed,name=list" json:"list,omitempty"`
}

func (*Int64List) Descriptor

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

func (*Int64List) GetList

func (m *Int64List) GetList() []int64

func (*Int64List) ProtoMessage

func (*Int64List) ProtoMessage()

func (*Int64List) Reset

func (m *Int64List) Reset()

func (*Int64List) String

func (m *Int64List) String() string

type IntValue

type IntValue struct {
	Value int64 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
}

func (*IntValue) Descriptor

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

func (*IntValue) GetValue

func (m *IntValue) GetValue() int64

func (*IntValue) ProtoMessage

func (*IntValue) ProtoMessage()

func (*IntValue) Reset

func (m *IntValue) Reset()

func (*IntValue) String

func (m *IntValue) String() string

type KV

type KV struct {
	Field string `protobuf:"bytes,1,opt,name=field" json:"field,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
}

func (*KV) Descriptor

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

func (*KV) GetField

func (m *KV) GetField() string

func (*KV) GetValue

func (m *KV) GetValue() string

func (*KV) ProtoMessage

func (*KV) ProtoMessage()

func (*KV) Reset

func (m *KV) Reset()

func (*KV) String

func (m *KV) String() string

type ListUser

type ListUser struct {
	Users []*TestUser `protobuf:"bytes,1,rep,name=users" json:"users,omitempty"`
}

func (*ListUser) Descriptor

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

func (*ListUser) GetUsers

func (m *ListUser) GetUsers() []*TestUser

func (*ListUser) ProtoMessage

func (*ListUser) ProtoMessage()

func (*ListUser) Reset

func (m *ListUser) Reset()

func (*ListUser) String

func (m *ListUser) String() string

type Nil

type Nil struct {
}

func (*Nil) Descriptor

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

func (*Nil) ProtoMessage

func (*Nil) ProtoMessage()

func (*Nil) Reset

func (m *Nil) Reset()

func (*Nil) String

func (m *Nil) String() string

type StringList

type StringList struct {
	List []string `protobuf:"bytes,1,rep,name=list" json:"list,omitempty"`
}

func (*StringList) Descriptor

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

func (*StringList) GetList

func (m *StringList) GetList() []string

func (*StringList) ProtoMessage

func (*StringList) ProtoMessage()

func (*StringList) Reset

func (m *StringList) Reset()

func (*StringList) String

func (m *StringList) String() string

type StringValue

type StringValue struct {
	Value string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
}

func (*StringValue) Descriptor

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

func (*StringValue) GetValue

func (m *StringValue) GetValue() string

func (*StringValue) ProtoMessage

func (*StringValue) ProtoMessage()

func (*StringValue) Reset

func (m *StringValue) Reset()

func (*StringValue) String

func (m *StringValue) String() string

type TestUser

type TestUser struct {
	Id       int64  `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	Account  string `protobuf:"bytes,2,opt,name=account" json:"account,omitempty"`
	Password string `protobuf:"bytes,3,opt,name=password" json:"password,omitempty"`
}

func (*TestUser) Descriptor

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

func (*TestUser) GetAccount

func (m *TestUser) GetAccount() string

func (*TestUser) GetId

func (m *TestUser) GetId() int64

func (*TestUser) GetPassword

func (m *TestUser) GetPassword() string

func (*TestUser) ProtoMessage

func (*TestUser) ProtoMessage()

func (*TestUser) Reset

func (m *TestUser) Reset()

func (*TestUser) String

func (m *TestUser) String() string

Jump to

Keyboard shortcuts

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