api

package
v0.0.0-...-8993e53 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterIdentityServer

func RegisterIdentityServer(s *grpc.Server, srv IdentityServer)

Types

type IdentityClient

type IdentityClient interface {
	Who(ctx context.Context, in *WhoRequest, opts ...grpc.CallOption) (*WhoResponse, error)
}

IdentityClient is the client API for Identity service.

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

func NewIdentityClient

func NewIdentityClient(cc *grpc.ClientConn) IdentityClient

type IdentityServer

type IdentityServer interface {
	Who(context.Context, *WhoRequest) (*WhoResponse, error)
}

IdentityServer is the server API for Identity service.

type WhoRequest

type WhoRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*WhoRequest) Descriptor

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

func (*WhoRequest) ProtoMessage

func (*WhoRequest) ProtoMessage()

func (*WhoRequest) Reset

func (m *WhoRequest) Reset()

func (*WhoRequest) String

func (m *WhoRequest) String() string

func (*WhoRequest) XXX_DiscardUnknown

func (m *WhoRequest) XXX_DiscardUnknown()

func (*WhoRequest) XXX_Marshal

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

func (*WhoRequest) XXX_Merge

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

func (*WhoRequest) XXX_Size

func (m *WhoRequest) XXX_Size() int

func (*WhoRequest) XXX_Unmarshal

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

type WhoResponse

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

func (*WhoResponse) Descriptor

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

func (*WhoResponse) GetName

func (m *WhoResponse) GetName() string

func (*WhoResponse) ProtoMessage

func (*WhoResponse) ProtoMessage()

func (*WhoResponse) Reset

func (m *WhoResponse) Reset()

func (*WhoResponse) String

func (m *WhoResponse) String() string

func (*WhoResponse) XXX_DiscardUnknown

func (m *WhoResponse) XXX_DiscardUnknown()

func (*WhoResponse) XXX_Marshal

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

func (*WhoResponse) XXX_Merge

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

func (*WhoResponse) XXX_Size

func (m *WhoResponse) XXX_Size() int

func (*WhoResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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