pb

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2019 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChapterClientCommand = &cobra.Command{
	Use: "chapter",
}
View Source
var DefaultClientCommandConfig = newClientCommandConfig()

-----------------------------------------------------------------------------

View Source
var GraphClientCommand = &cobra.Command{
	Use: "graph",
}
View Source
var GuildClientCommand = &cobra.Command{
	Use: "guild",
}
View Source
var SquadClientCommand = &cobra.Command{
	Use: "squad",
}
View Source
var TribeClientCommand = &cobra.Command{
	Use: "tribe",
}
View Source
var UserClientCommand = &cobra.Command{
	Use: "user",
}

Functions

func RegisterChapterServer

func RegisterChapterServer(s *grpc.Server, srv ChapterServer)

func RegisterGraphServer added in v0.0.1

func RegisterGraphServer(s *grpc.Server, srv GraphServer)

func RegisterGuildServer

func RegisterGuildServer(s *grpc.Server, srv GuildServer)

func RegisterSquadServer

func RegisterSquadServer(s *grpc.Server, srv SquadServer)

func RegisterTribeServer

func RegisterTribeServer(s *grpc.Server, srv TribeServer)

func RegisterUserServer

func RegisterUserServer(s *grpc.Server, srv UserServer)

Types

type ChapterClient

ChapterClient is the client API for Chapter service.

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

func NewChapterClient

func NewChapterClient(cc *grpc.ClientConn) ChapterClient

type ClientCommandConfig added in v0.0.1

type ClientCommandConfig struct {
	ServerAddr         string        `envconfig:"SERVER_ADDR" default:"localhost:8080"`
	Timeout            time.Duration `envconfig:"TIMEOUT" default:"10s"`
	TLS                bool          `envconfig:"TLS"`
	ServerName         string        `envconfig:"TLS_SERVER_NAME"`
	InsecureSkipVerify bool          `envconfig:"TLS_INSECURE_SKIP_VERIFY"`
	CACertFile         string        `envconfig:"TLS_CA_CERT_FILE"`
	CertFile           string        `envconfig:"TLS_CERT_FILE"`
	KeyFile            string        `envconfig:"TLS_KEY_FILE"`
	AuthToken          string        `envconfig:"AUTH_TOKEN"`
	AuthTokenType      string        `envconfig:"AUTH_TOKEN_TYPE" default:"Bearer"`
	JWTKey             string        `envconfig:"JWT_KEY"`
	JWTKeyFile         string        `envconfig:"JWT_KEY_FILE"`
}

func (*ClientCommandConfig) AddFlags added in v0.0.1

func (o *ClientCommandConfig) AddFlags(fs *pflag.FlagSet)

type GraphClient added in v0.0.1

type GraphClient interface {
	Expand(ctx context.Context, in *spotigraph.NodeInfoReq, opts ...grpc.CallOption) (*spotigraph.GraphRes, error)
}

GraphClient is the client API for Graph service.

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

func NewGraphClient added in v0.0.1

func NewGraphClient(cc *grpc.ClientConn) GraphClient

type GraphServer added in v0.0.1

type GraphServer interface {
	Expand(context.Context, *spotigraph.NodeInfoReq) (*spotigraph.GraphRes, error)
}

GraphServer is the server API for Graph service.

type GuildClient

GuildClient is the client API for Guild service.

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

func NewGuildClient

func NewGuildClient(cc *grpc.ClientConn) GuildClient

type SquadClient

SquadClient is the client API for Squad service.

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

func NewSquadClient

func NewSquadClient(cc *grpc.ClientConn) SquadClient

type TribeClient

TribeClient is the client API for Tribe service.

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

func NewTribeClient

func NewTribeClient(cc *grpc.ClientConn) TribeClient

type UserClient

UserClient is the client API for User service.

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

func NewUserClient

func NewUserClient(cc *grpc.ClientConn) UserClient

Jump to

Keyboard shortcuts

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