phonebook

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EtcdContactPath

func EtcdContactPath(contact *Contact) string

EtcdContactPath returns the path for a given contact.

func EtcdPath

func EtcdPath() string

EtcdPath returns the base path were the phonebook records are stored.

Types

type Contact

type Contact struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Company              string   `protobuf:"bytes,2,opt,name=company,proto3" json:"company,omitempty"`
	Phonenumber          string   `protobuf:"bytes,3,opt,name=phonenumber,proto3" json:"phonenumber,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Contact) Descriptor added in v1.6.0

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

func (*Contact) GetCompany added in v1.6.0

func (m *Contact) GetCompany() string

func (*Contact) GetName added in v1.6.0

func (m *Contact) GetName() string

func (*Contact) GetPhonenumber added in v1.6.0

func (m *Contact) GetPhonenumber() string

func (*Contact) ProtoMessage

func (*Contact) ProtoMessage()

func (*Contact) Reset

func (m *Contact) Reset()

func (*Contact) String

func (m *Contact) String() string

func (*Contact) XXX_DiscardUnknown added in v1.6.0

func (m *Contact) XXX_DiscardUnknown()

func (*Contact) XXX_Marshal added in v1.6.0

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

func (*Contact) XXX_Merge added in v1.6.0

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

func (*Contact) XXX_Size added in v1.6.0

func (m *Contact) XXX_Size() int

func (*Contact) XXX_Unmarshal added in v1.6.0

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

Jump to

Keyboard shortcuts

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