server

package
v0.10.3-0...-00edec2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is the streamingnode server.

func (*Server) Init

func (s *Server) Init(ctx context.Context) (err error)

Init initializes the streamingnode server.

func (*Server) Start

func (s *Server) Start()

Start starts the streamingnode server.

func (*Server) Stop

func (s *Server) Stop()

Stop stops the streamingnode server.

type ServerBuilder

type ServerBuilder struct {
	// contains filtered or unexported fields
}

ServerBuilder is used to build a server. All component should be initialized before server initialization should be added here.

func NewServerBuilder

func NewServerBuilder() *ServerBuilder

NewServerBuilder creates a new server builder.

func (*ServerBuilder) Build

func (b *ServerBuilder) Build() *Server

Build builds a streaming node server.

func (*ServerBuilder) WithChunkManager

func (b *ServerBuilder) WithChunkManager(cm storage.ChunkManager) *ServerBuilder

WithChunkManager sets chunk manager to the server builder.

func (*ServerBuilder) WithDataCoordClient

func (b *ServerBuilder) WithDataCoordClient(dc types.DataCoordClient) *ServerBuilder

WithDataCoordClient sets data coord client to the server builder.

func (*ServerBuilder) WithETCD

func (b *ServerBuilder) WithETCD(e *clientv3.Client) *ServerBuilder

WithETCD sets etcd client to the server builder.

func (*ServerBuilder) WithGRPCServer

func (b *ServerBuilder) WithGRPCServer(svr *grpc.Server) *ServerBuilder

WithGRPCServer sets grpc server to the server builder.

func (*ServerBuilder) WithMetaKV

func (b *ServerBuilder) WithMetaKV(kv kv.MetaKv) *ServerBuilder

WithMetaKV sets meta kv to the server builder.

func (*ServerBuilder) WithRootCoordClient

func (b *ServerBuilder) WithRootCoordClient(rc types.RootCoordClient) *ServerBuilder

WithRootCoordClient sets root coord client to the server builder.

func (*ServerBuilder) WithSession

func (b *ServerBuilder) WithSession(session *sessionutil.Session) *ServerBuilder

WithSession sets session to the server builder.

Jump to

Keyboard shortcuts

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